brew.sh: fix brew --version outside HOMEBREW_REPOSITORY.
This commit is contained in:
parent
bbed7246bc
commit
5af52410ab
@ -1,4 +1,4 @@
|
||||
HOMEBREW_VERSION="$(git describe --tags --dirty 2>/dev/null)"
|
||||
HOMEBREW_VERSION="$(GIT_DIR="$HOMEBREW_REPOSITORY/.git" git describe --tags --dirty 2>/dev/null)"
|
||||
if [[ -z "$HOMEBREW_VERSION" ]]
|
||||
then
|
||||
HOMEBREW_VERSION=">1.0.0 (no git repository)"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user