File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
.github/actions/pristine-homebrew Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -51,15 +51,27 @@ runs:
51
51
shell : bash
52
52
run : |
53
53
set -euo pipefail
54
- mapfile -t formulae < <(brew list --formula)
54
+
55
+ formulae=()
56
+ while IFS= read -r f; do
57
+ formulae+=("$f")
58
+ done < <(brew list --formula)
55
59
if [ "${#formulae[@]}" -gt 0 ]; then
56
60
brew uninstall --zap --force "${formulae[@]}"
57
61
fi
58
- mapfile -t casks < <(brew list --cask)
62
+
63
+ casks=()
64
+ while IFS= read -r c; do
65
+ casks+=("$c")
66
+ done < <(brew list --cask)
59
67
if [ "${#casks[@]}" -gt 0 ]; then
60
68
brew uninstall --cask --zap --force "${casks[@]}"
61
69
fi
62
- mapfile -t taps < <(brew tap)
70
+
71
+ taps=()
72
+ while IFS= read -r t; do
73
+ taps+=("$t")
74
+ done < <(brew tap)
63
75
if [ "${#taps[@]}" -gt 0 ]; then
64
76
brew untap "${taps[@]}"
65
77
fi
You can’t perform that action at this time.
0 commit comments