put filename in quotes, it might contain spaces

This commit is contained in:
missytake 2024-09-16 09:41:46 +02:00
parent 12d7f1b3e6
commit 1fde72598c
Signed by: missytake
GPG key ID: 04CC6658320518DF

2
fax.sh
View file

@ -63,7 +63,7 @@ echo -n "Sending file ${FILE} "
REC=$(echo "$REC0" | sed -e 's:[^+0-9]::g' -e 's:^0\([1-9]\):+49\1:')
echo "to $REC"
#Checking for file size:
if [ ! -e $FILE ]
if [ ! -e "$FILE" ]
then
echo "File not found"
exit 2