Browse Source

Fix upgrade and uninstall functions to pick up $ZSH value

Indrajit Raychaudhuri 13 years ago
parent
commit
0b583638ae
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/functions.zsh

+ 2 - 2
lib/functions.zsh

@@ -3,11 +3,11 @@ function zsh_stats() {
 }
 
 function uninstall_oh_my_zsh() {
-  /bin/sh $ZSH/tools/uninstall.sh
+  /usr/bin/env ZSH=$ZSH /bin/sh $ZSH/tools/uninstall.sh
 }
 
 function upgrade_oh_my_zsh() {
-  /bin/sh $ZSH/tools/upgrade.sh
+  /usr/bin/env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh
 }
 
 function take() {