Browse code

Fix auto upgrade failure from non-exported ZSH env var

Fixes #549. Specify ZSH=$ZSH explicitly when invoking
the auto update scripts.

Tim Taylor authored on 17/08/2011 at 04:17:21
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