From 2c392ffea97b7850af02bd5c3e3a142b805e3936 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Fri, 26 Jun 2015 23:52:24 -0400 Subject: download script: re-factor --- (limited to 'download') 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}" -- cgit v0.9.1