Revert "cmd/update-reset: accept tap names as arguments"
This reverts commit ac7dbc008284e1a85353548eb8e15c008be902ec.
This commit is contained in:
parent
ac7dbc0082
commit
12364d70d2
@ -33,22 +33,7 @@ homebrew-update-reset() {
|
|||||||
[[ "${option}" == *d* ]] && HOMEBREW_DEBUG=1
|
[[ "${option}" == *d* ]] && HOMEBREW_DEBUG=1
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
if [[ -d "${option}" ]]
|
REPOS+=("${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
|
esac
|
||||||
done
|
done
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user