From fd9368b2dd1817a6f0ca30adb4fcc4391264888a Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sat, 29 Aug 2015 20:08:41 -0400 Subject: download script: simplify --- diff --git a/download b/download index 2ab95d2..8d9adc2 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 v0.9.1