summaryrefslogtreecommitdiff
path: root/tools/upgrade.sh
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2021-03-03 13:08:41 -0700
committerTuowen Zhao <ztuowen@gmail.com>2021-03-03 13:08:41 -0700
commit0f2bface6494ae546ea83cbf45b65a18dbc0c4fb (patch)
tree5a33e6db95c55b4ad75a064b9c3e40d8f09f6b7b /tools/upgrade.sh
parentc6e754a3119b7273a57f0cfed38e85303662d26b (diff)
parent6fbad5bf72fad4ecf30ba4d4ffee62bac582f0ed (diff)
downloadzsh-0f2bface6494ae546ea83cbf45b65a18dbc0c4fb.tar.gz
zsh-0f2bface6494ae546ea83cbf45b65a18dbc0c4fb.tar.bz2
zsh-0f2bface6494ae546ea83cbf45b65a18dbc0c4fb.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'tools/upgrade.sh')
-rwxr-xr-xtools/upgrade.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/upgrade.sh b/tools/upgrade.sh
index 358242d0f..417e06fe8 100755
--- a/tools/upgrade.sh
+++ b/tools/upgrade.sh
@@ -1,7 +1,7 @@
#!/usr/bin/env zsh
if [ -z "$ZSH_VERSION" ]; then
- exec zsh "$0"
+ exec zsh "$0" "$@"
fi
cd "$ZSH"
@@ -66,7 +66,6 @@ if git pull --rebase --stat origin master; then
# Check if it was really updated or not
if [[ "$(git rev-parse HEAD)" = "$last_commit" ]]; then
message="Oh My Zsh is already at the latest version."
- ret=80 # non-zero exit code to indicate no changes pulled
else
message="Hooray! Oh My Zsh has been updated!"