1
0
Fork 0
mirror of synced 2024-05-27 12:31:10 -04:00

Call bootstrap scripts with a tty.

The exising bootstrip-in-dir script is changing stdin to be the result
of the find command.

fix #344
This commit is contained in:
Jeffrey Falgout 2023-03-07 21:16:36 -07:00
parent e4bb8a79a4
commit f513c670ab

View file

@ -14,7 +14,10 @@ if [[ ! -d "$BOOTSTRAP_D" ]]; then
exit 1 exit 1
fi fi
find -L "$BOOTSTRAP_D" -type f | sort | while IFS= read -r bootstrap; do IFS=$'\n'
bootstraps=( $(find -L "$BOOTSTRAP_D" -type f | sort) )
unset IFS
for bootstrap in "${bootstraps[@]}"; do
if [[ -x "$bootstrap" && ! "$bootstrap" =~ "##" && ! "$bootstrap" =~ "~$" ]]; then if [[ -x "$bootstrap" && ! "$bootstrap" =~ "##" && ! "$bootstrap" =~ "~$" ]]; then
if ! "$bootstrap"; then if ! "$bootstrap"; then
echo "Error: bootstrap '$bootstrap' failed" >&2 echo "Error: bootstrap '$bootstrap' failed" >&2