Use quotes for filename parameter.

This commit is contained in:
Nicolás Ortega Froysa 2021-01-26 10:09:50 +01:00
parent 0cf97d13b6
commit 6715ac58f6
1 changed files with 1 additions and 1 deletions

View File

@ -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