We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a1b236 commit ec10041Copy full SHA for ec10041
1 file changed
contrib/bootstrap/bootstrap-in-dir
@@ -14,11 +14,16 @@ if [[ ! -d "$BOOTSTRAP_D" ]]; then
14
exit 1
15
fi
16
17
-find -L "$BOOTSTRAP_D" -type f | sort | while IFS= read -r bootstrap; do
18
- if [[ -x "$bootstrap" && ! "$bootstrap" =~ "##" && ! "$bootstrap" =~ "~$" ]]; then
19
- if ! "$bootstrap"; then
20
- echo "Error: bootstrap '$bootstrap' failed" >&2
21
- exit 1
22
- fi
+declare -a bootstraps
+while IFS= read -r bootstrap; do
+ if [[ -x "$bootstrap" && ! "$bootstrap" =~ "##" && ! "$bootstrap" =~ ~$ ]]; then
+ bootstraps+=("$bootstrap")
+ fi
+done < <(find -L "$BOOTSTRAP_D" -type f | sort)
23
+
24
+for bootstrap in "${bootstraps[@]}"; do
25
+ if ! "$bootstrap"; then
26
+ echo "Error: bootstrap '$bootstrap' failed" >&2
27
+ exit 1
28
29
done
0 commit comments