fix unset var error

This commit is contained in:
2026-02-25 11:37:07 +01:00
parent 3dc607ef0a
commit 088849ba20

View File

@@ -6,4 +6,4 @@ set -euf -o pipefail
/opt/homebrew/bin/brew upgrade
/opt/homebrew/bin/brew bundle install --file="$1" --cleanup --zap
/opt/homebrew/bin/brew autoremove
[[ "$2" == "--prune" ]] && /opt/homebrew/bin/brew cleanup --prune=all
[[ "${2:-}" == "--prune" ]] && /opt/homebrew/bin/brew cleanup --prune=all