diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-08-30 01:08:41 +0100 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-08-30 01:08:41 +0100 |
commit | fd9368b2dd1817a6f0ca30adb4fcc4391264888a (patch) | |
tree | 8b9972b254a0a9750249aad40dd60705aa7d2968 /download | |
parent | 26c8db5f5975db5df26a172d67570ea3f107ff73 (diff) | |
download | librebootfr-fd9368b2dd1817a6f0ca30adb4fcc4391264888a.tar.gz librebootfr-fd9368b2dd1817a6f0ca30adb4fcc4391264888a.zip |
download script: simplify
Diffstat (limited to 'download')
-rwxr-xr-x | download | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -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" |