From 0731a062158b74e02543e98a887bdd28e624d61d Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sat, 27 Jun 2015 04:06:44 +0100 Subject: download script: add a list option --- download | 3 +++ 1 file changed, 3 insertions(+) (limited to 'download') diff --git a/download b/download index bf3147a1..29b275d7 100755 --- a/download +++ b/download @@ -36,6 +36,7 @@ if [ $# -lt 1 ]; then 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" exit 1 fi programmes="$@" @@ -44,6 +45,8 @@ if [ "${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 if [ -f "${download}/${programme}" ]; then -- cgit v1.2.3-70-g09d2