From 434f8e0b03e4b693e065c0afdb4505c529d40e53 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sat, 29 Aug 2015 16:55:44 -0400 Subject: download script: exit if using help/list option --- (limited to 'download') diff --git a/download b/download index 21d49eb..b3766f5 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 v0.9.1