Merge pull request #1109 from MikeMcQuaid/homebrew-version-clean

brew.sh: change directory for HOMEBREW_VERSION.
This commit is contained in:
Mike McQuaid 2016-09-24 17:45:36 +01:00 committed by GitHub
commit 162bfee90f

View File

@ -1,4 +1,4 @@
HOMEBREW_VERSION="$(GIT_DIR="$HOMEBREW_REPOSITORY/.git" git describe --tags --dirty 2>/dev/null)" HOMEBREW_VERSION="$(git -C "$HOMEBREW_REPOSITORY" describe --tags --dirty 2>/dev/null)"
if [[ -z "$HOMEBREW_VERSION" ]] if [[ -z "$HOMEBREW_VERSION" ]]
then then
HOMEBREW_VERSION=">1.0.0 (no git repository)" HOMEBREW_VERSION=">1.0.0 (no git repository)"