summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-08-29 20:08:41 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-08-29 20:08:41 (EDT)
commitfd9368b2dd1817a6f0ca30adb4fcc4391264888a (patch)
tree8b9972b254a0a9750249aad40dd60705aa7d2968
parent26c8db5f5975db5df26a172d67570ea3f107ff73 (diff)
downloadlibreboot-fd9368b2dd1817a6f0ca30adb4fcc4391264888a.zip
libreboot-fd9368b2dd1817a6f0ca30adb4fcc4391264888a.tar.gz
libreboot-fd9368b2dd1817a6f0ca30adb4fcc4391264888a.tar.bz2
download script: simplify
-rwxr-xr-xdownload9
1 files changed, 1 insertions, 8 deletions
diff --git a/download b/download
index 2ab95d2..8d9adc2 100755
--- a/download
+++ b/download
@@ -25,15 +25,8 @@ set -u -e
download="resources/scripts/helpers/download"
-programs=( "${download}/"* )
# echo "${programs##*/}" ; echo "${programs%/*}"
-
-programlist () {
- for program in "${programs[@]}"; do
- printf "%s\n" "${program##*/}"
- done
-}
-programs="$(programlist)"
+programs="$(for program in ${download}/*; do printf "%s\n" "${program##*/}"; done)"
noconfirm="0"