mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
cmd/--version: don't always output homebrew/core.
This is more confusing than helpful if it's untapped for API usage.
This commit is contained in:
parent
abc6d22623
commit
d60d2fe158
@ -27,7 +27,11 @@ version_string() {
|
|||||||
|
|
||||||
homebrew-version() {
|
homebrew-version() {
|
||||||
echo "Homebrew ${HOMEBREW_VERSION}"
|
echo "Homebrew ${HOMEBREW_VERSION}"
|
||||||
|
|
||||||
|
if [[ -n "${HOMEBREW_NO_INSTALL_FROM_API}" || -d "${HOMEBREW_CORE_REPOSITORY}" ]]
|
||||||
|
then
|
||||||
echo "Homebrew/homebrew-core $(version_string "${HOMEBREW_CORE_REPOSITORY}")"
|
echo "Homebrew/homebrew-core $(version_string "${HOMEBREW_CORE_REPOSITORY}")"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -d "${HOMEBREW_CASK_REPOSITORY}" ]]
|
if [[ -d "${HOMEBREW_CASK_REPOSITORY}" ]]
|
||||||
then
|
then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user