1
0
Fork 0
mirror of synced 2024-07-26 18:11:09 -04:00

Switch to mapfile instead of the default word splitting + glob

expansion.
This commit is contained in:
Jeffrey Falgout 2023-06-11 11:26:10 -06:00
parent f513c670ab
commit d149146da7

View file

@ -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