set upgrade to look at upstream if it exists

This commit is contained in:
Bryan Tidwell 2016-11-13 20:21:40 -06:00
parent 62b0abdb6e
commit af912fc5d6

View File

@ -22,7 +22,7 @@ fi
printf "${BLUE}%s${NORMAL}\n" "Updating Oh My Zsh"
cd "$ZSH"
if git pull --rebase --stat origin master
if [ -d .git/refs/upsteam ] git pull --rebase --stat upstream master || git pull --rebase --stat origin master
then
printf '%s' "$GREEN"
printf '%s\n' ' __ __ '