Switch to mapfile instead of the default word splitting + glob
expansion.
This commit is contained in:
parent
f513c670ab
commit
d149146da7
1 changed files with 1 additions and 3 deletions
|
@ -14,9 +14,7 @@ if [[ ! -d "$BOOTSTRAP_D" ]]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
IFS=$'\n'
|
||||
bootstraps=( $(find -L "$BOOTSTRAP_D" -type f | sort) )
|
||||
unset IFS
|
||||
mapfile -t bootstraps < <(find -L "$BOOTSTRAP_D" -type f | sort)
|
||||
for bootstrap in "${bootstraps[@]}"; do
|
||||
if [[ -x "$bootstrap" && ! "$bootstrap" =~ "##" && ! "$bootstrap" =~ "~$" ]]; then
|
||||
if ! "$bootstrap"; then
|
||||
|
|
Loading…
Reference in a new issue