From de786ec51ca86d12de92ad4300ad72d3e209b1da Mon Sep 17 00:00:00 2001 From: Nathan Henrie Date: Tue, 10 Jan 2023 10:06:20 -0700 Subject: [PATCH] Support optional space after `-p` / `--path` Fixes https://github.com/Homebrew/install/issues/724 --- uninstall.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/uninstall.sh b/uninstall.sh index f79b176..414e113 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -222,6 +222,14 @@ EOS while [[ $# -gt 0 ]] do case "$1" in + -p) + homebrew_prefix_candidates+=("$2") + shift + ;; + --path) + homebrew_prefix_candidates+=("$2") + shift + ;; -p*) homebrew_prefix_candidates+=("${1#-p}") ;; --path=*) homebrew_prefix_candidates+=("${1#--path=}") ;; --skip-cache-and-logs) opt_skip_cache_and_logs=1 ;;