Only set HOMEBREW_GITHUB_API_TOKEN if it makes sense.

This commit is contained in:
Scott Wallace 2016-03-15 19:51:36 +00:00
parent 4639a302e0
commit 158b05543b

View file

@ -59,7 +59,9 @@ pathadd ~/bin
#--------------------------------------------------------------------------------
# Set some variables
#--------------------------------------------------------------------------------
export HOMEBREW_GITHUB_API_TOKEN=$(getkey HOMEBREW_GITHUB_API_TOKEN)
if [ -x "$(which brew 2>/dev/null)" ]; then
export HOMEBREW_GITHUB_API_TOKEN=$(getkey HOMEBREW_GITHUB_API_TOKEN)
fi
#--------------------------------------------------------------------------------
#--------------------------------------------------------------------------------