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