summaryrefslogtreecommitdiff
path: root/tools/check_for_upgrade.sh
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2011-04-29 10:33:21 -0700
committerRobby Russell <robby@planetargon.com>2011-04-29 10:33:21 -0700
commita525993f6b62f3c5acec0afd204ff517408b6f29 (patch)
treec1195e7a7eb04375dab20cbdfecb8d31f1181e45 /tools/check_for_upgrade.sh
parent784c56cd09842c28df9a2e78279dd0667db8da47 (diff)
parent626fa5b1d83abb145452deaa610fc8f7a59293c1 (diff)
downloadzsh-a525993f6b62f3c5acec0afd204ff517408b6f29.tar.gz
zsh-a525993f6b62f3c5acec0afd204ff517408b6f29.tar.bz2
zsh-a525993f6b62f3c5acec0afd204ff517408b6f29.zip
Merged pull request #315 from nebirhos/master.
Fixies auto update (2nd try)
Diffstat (limited to 'tools/check_for_upgrade.sh')
-rw-r--r--tools/check_for_upgrade.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh
index 4643739ca..e1e4eb99f 100644
--- a/tools/check_for_upgrade.sh
+++ b/tools/check_for_upgrade.sh
@@ -25,10 +25,11 @@ then
if [ "$line" = Y ] || [ "$line" = y ]
then
/bin/sh $ZSH/tools/upgrade.sh
+ # update the zsh file
+ _update_zsh_update
fi
fi
+else
+ # create the zsh file
+ _update_zsh_update
fi
-
-# update the zsh file
-_update_zsh_update
-