From 1fde72598c6ff4536062fb6cc2d78f32708948db Mon Sep 17 00:00:00 2001 From: missytake Date: Mon, 16 Sep 2024 09:41:46 +0200 Subject: [PATCH] put filename in quotes, it might contain spaces --- fax.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fax.sh b/fax.sh index 8f7824b..82194bd 100755 --- a/fax.sh +++ b/fax.sh @@ -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 -- 2.43.4