summaryrefslogtreecommitdiff
path: root/tools/upgrade.sh
diff options
context:
space:
mode:
authorAaron N. Brock <AaronNBrock@gmail.com>2019-11-22 10:40:37 -0500
committerGitHub <noreply@github.com>2019-11-22 10:40:37 -0500
commit420e9d789a26223df9dd7df7625daf032a3f5083 (patch)
tree0ccfcd55671fd4d68b61a91188c984563384ee30 /tools/upgrade.sh
parent5722677884e85ae910daab4b4624745af74540e6 (diff)
parent76d6b0256398ad1becbc304a78f51bbacfee50e5 (diff)
downloadzsh-420e9d789a26223df9dd7df7625daf032a3f5083.tar.gz
zsh-420e9d789a26223df9dd7df7625daf032a3f5083.tar.bz2
zsh-420e9d789a26223df9dd7df7625daf032a3f5083.zip
Merge branch 'master' into colorize-chroma-support
Diffstat (limited to 'tools/upgrade.sh')
-rw-r--r--tools/upgrade.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/upgrade.sh b/tools/upgrade.sh
index f64a0096e..3005e6542 100644
--- a/tools/upgrade.sh
+++ b/tools/upgrade.sh
@@ -31,6 +31,12 @@ git config fsck.zeroPaddedFilemode ignore
git config fetch.fsck.zeroPaddedFilemode ignore
git config receive.fsck.zeroPaddedFilemode ignore
+# Update upstream remote to ohmyzsh org
+remote=$(git remote -v | awk '/https:\/\/github\.com\/robbyrussell\/oh-my-zsh\.git/{ print $1; exit }')
+if [ -n "$remote" ]; then
+ git remote set-url "$remote" "https://github.com/ohmyzsh/ohmyzsh.git"
+fi
+
printf "${BLUE}%s${NORMAL}\n" "Updating Oh My Zsh"
if git pull --rebase --stat origin master
then