Use quotes for filename parameter.
This commit is contained in:
parent
0cf97d13b6
commit
6715ac58f6
@ -62,7 +62,7 @@ if [ $? == 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# check if the file exists
|
# check if the file exists
|
||||||
if [ ! -f $1 ]; then
|
if [ ! -f "$1" ]; then
|
||||||
echo "Regular file $1 does not exist."
|
echo "Regular file $1 does not exist."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user