浏览代码

Fix upgrade and uninstall functions to pick up $ZSH value

Indrajit Raychaudhuri 13 年之前
父节点
当前提交
0b583638ae
共有 1 个文件被更改,包括 2 次插入2 次删除
  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() {