From fd9368b2dd1817a6f0ca30adb4fcc4391264888a Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 30 Aug 2015 01:08:41 +0100 Subject: download script: simplify --- download | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'download') 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" -- cgit v1.2.3-70-g09d2