diff options
Diffstat (limited to 'fb.in')
-rw-r--r-- | fb.in | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -119,8 +119,9 @@ do_upload() { basefilename="`basename -- "$file"`" basedirname="`dirname -- "$file"`" - if [ ! -e "$file" ]; then - echo "Error: File \"$file\" doesn't exist" >&2 + if [ ! -r "$file" ]; then + # sh doesn't have perror so this message can't be more precise + echo "Error: File \"$file\" is not readable/not found." >&2 return 1 fi |