From eaf51c696d8567dce4ffc01c1bbf725cd0ab34dd Mon Sep 17 00:00:00 2001 From: Gandalf Date: Wed, 17 Mar 2021 16:24:58 +0100 Subject: [PATCH] Fixed a typo --- fax.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fax.sh b/fax.sh index b651083..d616237 100755 --- a/fax.sh +++ b/fax.sh @@ -16,7 +16,7 @@ echo -n "Sending file ${FILE} " REC=$(echo "$2" | sed -e 's:[^+0-9]::g' -e 's:^0\([1-9]\):+49\1:') echo "to $REC" #Checking for file size: -SIZE=$(ls -l | cut -d " " -f5) +SIZE=$(ls -l $FILE | cut -d " " -f5) if [ $SIZE -gt 10485760 ] then echo "File too big. Cannot be more than 10MB."