update.sh: allow forcing tag update.

To test the tag update functionality allow setting
`HOMEBREW_UPDATE_TO_TAG`.
This commit is contained in:
Mike McQuaid 2016-09-18 19:59:56 +01:00
parent b2c7d6d83d
commit e8ebcb834b
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
HOMEBREW_VERSION="0.9.9" HOMEBREW_VERSION="1.0.0"
onoe() { onoe() {
if [[ -t 2 ]] # check whether stderr is a tty. if [[ -t 2 ]] # check whether stderr is a tty.

View File

@ -348,7 +348,7 @@ EOS
set -x set -x
fi fi
if [[ -z "$HOMEBREW_UPDATE_CLEANUP" ]] if [[ -z "$HOMEBREW_UPDATE_CLEANUP" && -z "$HOMEBREW_UPDATE_TO_TAG" ]]
then then
if [[ -n "$HOMEBREW_DEVELOPER" || -n "$HOMEBREW_DEV_CMD_RUN" ]] if [[ -n "$HOMEBREW_DEVELOPER" || -n "$HOMEBREW_DEV_CMD_RUN" ]]
then then