Browse code

Fix upgrade and uninstall functions to pick up $ZSH value

Indrajit Raychaudhuri authored on 11/12/2011 at 14:57:35
Showing 1 changed files
... ...
@@ -3,11 +3,11 @@ function zsh_stats() {
3 3
 }
4 4
 
5 5
 function uninstall_oh_my_zsh() {
6
-  /bin/sh $ZSH/tools/uninstall.sh
6
+  /usr/bin/env ZSH=$ZSH /bin/sh $ZSH/tools/uninstall.sh
7 7
 }
8 8
 
9 9
 function upgrade_oh_my_zsh() {
10
-  /bin/sh $ZSH/tools/upgrade.sh
10
+  /usr/bin/env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh
11 11
 }
12 12
 
13 13
 function take() {