Revert "cmd/update-reset: accept tap names as arguments"

This reverts commit ac7dbc008284e1a85353548eb8e15c008be902ec.
This commit is contained in:
Carlo Cabrera 2023-02-28 20:30:40 +08:00
parent ac7dbc0082
commit 12364d70d2
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -33,22 +33,7 @@ homebrew-update-reset() {
[[ "${option}" == *d* ]] && HOMEBREW_DEBUG=1
;;
*)
if [[ -d "${option}" ]]
then
REPOS+=("${option}")
else
local owner="${option%/*}"
local name="${option#*/}"
name="${name#homebrew-}" # Support both homebrew/core and homebrew/homebrew-core.
local repo_path="${HOMEBREW_LIBRARY}/Taps/${owner}/homebrew-${name}"
if [[ -d "${repo_path}" ]]
then
REPOS+=("${repo_path}")
else
odie "Could not find tap: ${option}"
fi
fi
;;
esac
done