mirror of
https://github.com/tw93/Mole.git
synced 2026-03-22 19:40:07 +00:00
Refine update/uninstall UX and stabilize brew flows
This commit is contained in:
@@ -178,13 +178,6 @@ brew_uninstall_cask() {
|
||||
|
||||
debug_log "Attempting brew uninstall --cask --zap $cask_name"
|
||||
|
||||
# Ensure we have sudo access if needed, to prevent brew from hanging on password prompt
|
||||
if [[ "${NONINTERACTIVE:-}" != "1" && -t 0 && -t 1 ]]; then
|
||||
if ! sudo -n true 2> /dev/null; then
|
||||
sudo -v
|
||||
fi
|
||||
fi
|
||||
|
||||
local uninstall_ok=false
|
||||
local brew_exit=0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user