summaryrefslogtreecommitdiffstats
path: root/download
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-06-26 23:52:24 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-06-26 23:52:24 (EDT)
commit2c392ffea97b7850af02bd5c3e3a142b805e3936 (patch)
tree3c369be1a2bd7da63656af6fd7fd1276694a326e /download
parentc4b79d6baa2222d748c3ac6436ba1235e42ec974 (diff)
downloadlibreboot-2c392ffea97b7850af02bd5c3e3a142b805e3936.zip
libreboot-2c392ffea97b7850af02bd5c3e3a142b805e3936.tar.gz
libreboot-2c392ffea97b7850af02bd5c3e3a142b805e3936.tar.bz2
download script: re-factor
Diffstat (limited to 'download')
-rwxr-xr-xdownload6
1 files changed, 3 insertions, 3 deletions
diff --git a/download b/download
index 0383cad..82f7894 100755
--- a/download
+++ b/download
@@ -41,12 +41,12 @@ if [ $# -lt 1 ]; then
fi
programmes="$@"
-if [ "${programmes}" = "all" ]; then
+if [ "${programmes}" = "list" ]; then
+ printf "Available programmes are:\nall\n%s\n" "${availableprogrammes}"
+elif [ "${programmes}" = "all" ]; then
for programme in ${availableprogrammes}; do
${download}/${programme}
done
-elif [ "${programmes}" = "list" ]; then
- printf "Available programmes are:\nall\n%s\n" "${availableprogrammes}"
else
for programme in ${programmes}; do
printf "\"%s\"\n" "${programme}"