Browse Source

Merge pull request #772 from indrajitr/master

Fix upgrade and uninstall functions to pick up $ZSH value
Robby Russell 13 years ago
parent
commit
2b86624951
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() {