diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-08-29 21:59:19 +0100 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-08-29 21:59:19 +0100 |
commit | 67c8330aad941b769e6a2887f02a865eb01a858a (patch) | |
tree | a2ed775589e96f3478e1435e25e9253a8c12e69c /download | |
parent | 5609232858950a676434adc7a96a722ae27dba76 (diff) | |
download | librebootfr-67c8330aad941b769e6a2887f02a865eb01a858a.tar.gz librebootfr-67c8330aad941b769e6a2887f02a865eb01a858a.zip |
download script: produce error if no argument given
Diffstat (limited to 'download')
-rwxr-xr-x | download | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) ;; |