libreboot

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit cc40b7d62f68380f6ce36965b5f2a185e060b014
parent d67bf7155da5a8943c5c47785887e6079a58ca8f
Author: Francis Rowe <info@gluglug.org.uk>
Date:   Sat, 29 Aug 2015 19:33:21 +0100

download script: put ending characters on new line

Less chance to screw it up when adding more commands, and more
readable.

Diffstat:
download | 12++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/download b/download @@ -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 ----------------------