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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
IFS=$'\n'
|
mapfile -t bootstraps < <(find -L "$BOOTSTRAP_D" -type f | sort)
|
||||||
bootstraps=( $(find -L "$BOOTSTRAP_D" -type f | sort) )
|
|
||||||
unset IFS
|
|
||||||
for bootstrap in "${bootstraps[@]}"; do
|
for bootstrap in "${bootstraps[@]}"; do
|
||||||
if [[ -x "$bootstrap" && ! "$bootstrap" =~ "##" && ! "$bootstrap" =~ "~$" ]]; then
|
if [[ -x "$bootstrap" && ! "$bootstrap" =~ "##" && ! "$bootstrap" =~ "~$" ]]; then
|
||||||
if ! "$bootstrap"; then
|
if ! "$bootstrap"; then
|
||||||
|
Loading…
Reference in New Issue
Block a user