diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-08-29 21:55:44 +0100 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-08-29 21:55:44 +0100 |
commit | 434f8e0b03e4b693e065c0afdb4505c529d40e53 (patch) | |
tree | d4b9c6765ab61d9c0879d5fc3a7212e678f2fa53 | |
parent | ed8516c4d21d049ef48be0656e40b04ac5c1d305 (diff) | |
download | librebootfr-434f8e0b03e4b693e065c0afdb4505c529d40e53.tar.gz librebootfr-434f8e0b03e4b693e065c0afdb4505c529d40e53.zip |
download script: exit if using help/list option
-rwxr-xr-x | download | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |