summaryrefslogtreecommitdiffstats
path: root/download
diff options
context:
space:
mode:
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 () {