From 434f8e0b03e4b693e065c0afdb4505c529d40e53 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sat, 29 Aug 2015 21:55:44 +0100 Subject: download script: exit if using help/list option --- download | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'download') diff --git a/download b/download index 21d49eb9..b3766f59 100755 --- a/download +++ b/download @@ -28,10 +28,10 @@ programmes=$(ls ${download}/) case ${@} in all) - ;; list) printf "possible values for 'programmes':\nall:\n%s\n\n" "${programmes}" + exit ;; help) printf "%s\n\n" "./download programme(s) # programmes are space separated, if specifing multiple programmes" @@ -41,6 +41,7 @@ case ${@} in printf "Example (download coreboot): ./download coreboot\n" printf "Example (download coreboot and flashrom): ./download coreboot flashrom\n" printf "Example (lists all available downloadable components): ./download list\n" + exit ;; *) for programme in ${@}; do -- cgit v1.2.3-70-g09d2