diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-06-26 23:06:44 (EDT) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-06-26 23:06:44 (EDT) |
commit | 0731a062158b74e02543e98a887bdd28e624d61d (patch) | |
tree | 2d4e1514f3b385c006a3b8d2d4f9916c1694d10c | |
parent | d7718287d29e1d96c382a0ce262bc725de85628f (diff) | |
download | libreboot-0731a062158b74e02543e98a887bdd28e624d61d.zip libreboot-0731a062158b74e02543e98a887bdd28e624d61d.tar.gz libreboot-0731a062158b74e02543e98a887bdd28e624d61d.tar.bz2 |
download script: add a list option
-rwxr-xr-x | download | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |