aboutsummaryrefslogtreecommitdiff
path: root/download
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-08-30 01:08:41 +0100
committerFrancis Rowe <info@gluglug.org.uk>2015-08-30 01:08:41 +0100
commitfd9368b2dd1817a6f0ca30adb4fcc4391264888a (patch)
tree8b9972b254a0a9750249aad40dd60705aa7d2968 /download
parent26c8db5f5975db5df26a172d67570ea3f107ff73 (diff)
downloadlibrebootfr-fd9368b2dd1817a6f0ca30adb4fcc4391264888a.tar.gz
librebootfr-fd9368b2dd1817a6f0ca30adb4fcc4391264888a.zip
download script: simplify
Diffstat (limited to 'download')
-rwxr-xr-xdownload9
1 files changed, 1 insertions, 8 deletions
diff --git a/download b/download
index 2ab95d23..8d9adc2d 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"