Fixed a typo

This commit is contained in:
Gandalf 2021-03-17 16:24:58 +01:00
parent f9c39da3bb
commit eaf51c696d

2
fax.sh
View file

@ -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:') REC=$(echo "$2" | sed -e 's:[^+0-9]::g' -e 's:^0\([1-9]\):+49\1:')
echo "to $REC" echo "to $REC"
#Checking for file size: #Checking for file size:
SIZE=$(ls -l | cut -d " " -f5) SIZE=$(ls -l $FILE | cut -d " " -f5)
if [ $SIZE -gt 10485760 ] if [ $SIZE -gt 10485760 ]
then then
echo "File too big. Cannot be more than 10MB." echo "File too big. Cannot be more than 10MB."