diff options
author | Francis 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) |
commit | 67c8330aad941b769e6a2887f02a865eb01a858a (patch) | |
tree | a2ed775589e96f3478e1435e25e9253a8c12e69c | |
parent | 5609232858950a676434adc7a96a722ae27dba76 (diff) | |
download | libreboot-67c8330aad941b769e6a2887f02a865eb01a858a.zip libreboot-67c8330aad941b769e6a2887f02a865eb01a858a.tar.gz libreboot-67c8330aad941b769e6a2887f02a865eb01a858a.tar.bz2 |
download script: produce error if no argument given
-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) ;; |