diff --git a/src/datastore_mad/remotes/downloader.sh b/src/datastore_mad/remotes/downloader.sh index 1c876b275f..56460579a7 100755 --- a/src/datastore_mad/remotes/downloader.sh +++ b/src/datastore_mad/remotes/downloader.sh @@ -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