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."