Merge pull request #4828 from xu-cheng/scm

scm shim: handle edge case
This commit is contained in:
Mike McQuaid 2018-09-05 09:50:03 +01:00 committed by GitHub
commit f2cb0da3b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,10 +85,16 @@ fi
case "$(lowercase "$SCM_FILE")" in case "$(lowercase "$SCM_FILE")" in
git) git)
[[ -n "$HOMEBREW_GIT" ]] && safe_exec "$(type -P "$HOMEBREW_GIT")" "$@" if [[ -n "$HOMEBREW_GIT" && "$HOMEBREW_GIT" != git ]]
then
safe_exec "$(type -P "$HOMEBREW_GIT")" "$@"
fi
;; ;;
svn) svn)
[[ -n "$HOMEBREW_SVN" ]] && safe_exec "$(type -P "$HOMEBREW_SVN")" "$@" if [[ -n "$HOMEBREW_SVN" && "$HOMEBREW_SVN" != svn ]]
then
safe_exec "$(type -P "$HOMEBREW_SVN")" "$@"
fi
;; ;;
esac esac