summaryrefslogtreecommitdiffstats
path: root/download
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-08-29 19:46:50 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-08-29 19:50:45 (EDT)
commit26c8db5f5975db5df26a172d67570ea3f107ff73 (patch)
tree93e704f0d82e6c70388a1eb9d942819deb182c8e /download
parentd2656247bf7f24dd071ba32ba0cfdbfc50429b41 (diff)
downloadlibreboot-26c8db5f5975db5df26a172d67570ea3f107ff73.zip
libreboot-26c8db5f5975db5df26a172d67570ea3f107ff73.tar.gz
libreboot-26c8db5f5975db5df26a172d67570ea3f107ff73.tar.bz2
download script: standards compliance (don't parse ls)
Diffstat (limited to 'download')
-rwxr-xr-xdownload12
1 files changed, 11 insertions, 1 deletions
diff --git a/download b/download
index e9651b7..2ab95d2 100755
--- a/download
+++ b/download
@@ -24,7 +24,17 @@
set -u -e
download="resources/scripts/helpers/download"
-programs="$(ls ${download}/)"
+
+programs=( "${download}/"* )
+# echo "${programs##*/}" ; echo "${programs%/*}"
+
+programlist () {
+ for program in "${programs[@]}"; do
+ printf "%s\n" "${program##*/}"
+ done
+}
+programs="$(programlist)"
+
noconfirm="0"
help () {