summaryrefslogtreecommitdiffstats
path: root/fb.in
diff options
context:
space:
mode:
Diffstat (limited to 'fb.in')
-rw-r--r--fb.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/fb.in b/fb.in
index 0380777..bd15407 100644
--- a/fb.in
+++ b/fb.in
@@ -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