Browse code

Merge pull request #554 from toolbear/549-fix-auto-upgrade

Fix auto upgrade failure from non-exported ZSH env var

Robby Russell authored on 10/10/2011 at 12:40:38
Showing 2 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 # Check for updates on initial load...
2 2
 if [ "$DISABLE_AUTO_UPDATE" != "true" ]
3 3
 then
4
-  /usr/bin/env zsh $ZSH/tools/check_for_upgrade.sh
4
+  /usr/bin/env ZSH=$ZSH zsh $ZSH/tools/check_for_upgrade.sh
5 5
 fi
6 6
 
7 7
 # Initializes Oh My Zsh
... ...
@@ -24,7 +24,7 @@ then
24 24
     read line
25 25
     if [ "$line" = Y ] || [ "$line" = y ]
26 26
     then
27
-      /bin/sh $ZSH/tools/upgrade.sh
27
+      /usr/bin/env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh
28 28
       # update the zsh file
29 29
       _update_zsh_update
30 30
     fi