summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-08-29 16:59:19 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-08-29 16:59:19 (EDT)
commit67c8330aad941b769e6a2887f02a865eb01a858a (patch)
treea2ed775589e96f3478e1435e25e9253a8c12e69c
parent5609232858950a676434adc7a96a722ae27dba76 (diff)
downloadlibreboot-67c8330aad941b769e6a2887f02a865eb01a858a.zip
libreboot-67c8330aad941b769e6a2887f02a865eb01a858a.tar.gz
libreboot-67c8330aad941b769e6a2887f02a865eb01a858a.tar.bz2
download script: produce error if no argument given
-rwxr-xr-xdownload5
1 files changed, 5 insertions, 0 deletions
diff --git a/download b/download
index 688d5c9..ee8238f 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)
;;