Skip to content

Commit 0cab9ca

Browse files
committed
fix: uninstall only formulae and casks in clean up scripts
1 parent 3d76dc5 commit 0cab9ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/actions/pristine-homebrew/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ runs:
5858
formulae+=("$f")
5959
done < <(brew list --formula)
6060
if [ "${#formulae[@]}" -gt 0 ]; then
61-
brew uninstall --zap --force "${formulae[@]}"
61+
brew uninstall --formula --zap --force "${formulae[@]}"
6262
fi
6363
6464
casks=()

tests/scripts/clean_homebrew.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
brew list | xargs brew uninstall --zap --force
3+
brew list --formula | xargs brew uninstall --formula --zap --force
44
brew list --cask | xargs brew uninstall --cask --zap --force
55
brew tap | xargs brew untap
66

0 commit comments

Comments
 (0)