aboutsummaryrefslogtreecommitdiff
path: root/download
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-08-29 21:59:19 +0100
committerFrancis Rowe <info@gluglug.org.uk>2015-08-29 21:59:19 +0100
commit67c8330aad941b769e6a2887f02a865eb01a858a (patch)
treea2ed775589e96f3478e1435e25e9253a8c12e69c /download
parent5609232858950a676434adc7a96a722ae27dba76 (diff)
downloadlibrebootfr-67c8330aad941b769e6a2887f02a865eb01a858a.tar.gz
librebootfr-67c8330aad941b769e6a2887f02a865eb01a858a.zip
download script: produce error if no argument given
Diffstat (limited to 'download')
-rwxr-xr-xdownload5
1 files changed, 5 insertions, 0 deletions
diff --git a/download b/download
index 688d5c99..ee8238f2 100755
--- a/download
+++ b/download
@@ -26,6 +26,11 @@ set -u -e
download=./resources/scripts/helpers/download
programmes=$(ls ${download}/)
+if [ $# -lt 1 ]; then
+ printf "ERROR: download script: no argmunt given.\n"
+ exit 1
+fi
+
case ${@} in
all)
;;