bug #2481: Check read permissions in downloader.sh

This commit is contained in:
Ruben S. Montero committed 2013-11-23 18:39:48 +01:00
1 parent bc98a3fa02
commit 682f24bafd
1 file changed
+4
+4
View File
@@ -177,6 +177,10 @@ http://*|https://*)
command="curl $curl_args"
;;
*)
if [ ! -r $FROM ]; then
echo "Cannot read from $FROM" >&2
exit -1
fi
command="cat $FROM"
;;
esac