mirror of
https://github.com/TheLocehiliosan/yadm
synced 2024-10-27 20:34:27 +00:00
Switch to mapfile instead of the default word splitting + glob
expansion.
This commit is contained in:
parent
f513c670ab
commit
d149146da7
@ -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 New Issue
Block a user