diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-08-29 14:33:21 (EDT) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-08-29 14:33:21 (EDT) |
commit | cc40b7d62f68380f6ce36965b5f2a185e060b014 (patch) | |
tree | c75eae10161a1ee598f031350915b89a7ab124ae | |
parent | d67bf7155da5a8943c5c47785887e6079a58ca8f (diff) | |
download | libreboot-cc40b7d62f68380f6ce36965b5f2a185e060b014.zip libreboot-cc40b7d62f68380f6ce36965b5f2a185e060b014.tar.gz libreboot-cc40b7d62f68380f6ce36965b5f2a185e060b014.tar.bz2 |
download script: put ending characters on new line
Less chance to screw it up when adding more commands, and more
readable.
-rwxr-xr-x | download | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -30,9 +30,11 @@ case ${@} in all) for programme in ${availableprogrammes}; do ${download}/${programme} - done;; + done + ;; list) - printf "possible values for 'programmes':\nall:\n%s\n\n" "${availableprogrammes}";; + printf "possible values for 'programmes':\nall:\n%s\n\n" "${availableprogrammes}" + ;; help) printf "%s\n\n" "./download programme(s) # programmes are space separated, if specifing multiple programmes" printf "possible values for 'programmes':\nall:\n%s\n\n" "${availableprogrammes}" @@ -40,13 +42,15 @@ case ${@} in printf "Example (download flashrom): ./download flashrom\n" 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";; + printf "Example (lists all available downloadable components): ./download list\n" + ;; *) for programme in ${@}; do echo ${availableprogrammes} | grep -wq ${programme} || (printf "ERROR: Invalid programme '${programme}'. See ./download help.\n"; exit 1) done for programme in ${@}; do ${download}/${programme} - done;; + done + ;; esac # ------------------- DONE ---------------------- |