From 67c8330aad941b769e6a2887f02a865eb01a858a Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sat, 29 Aug 2015 21:59:19 +0100 Subject: download script: produce error if no argument given --- download | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'download') 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) ;; -- cgit v1.2.3-70-g09d2