浏览代码

fixed autoupdate

nebirhos 13 年之前
父节点
当前提交
626fa5b1d8
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5 4
      tools/check_for_upgrade.sh

+ 5 - 4
tools/check_for_upgrade.sh

@@ -25,10 +25,11 @@ then
     if [ "$line" = Y ] || [ "$line" = y ]
     then
       /bin/sh $ZSH/tools/upgrade.sh
+      # update the zsh file
+      _update_zsh_update
     fi
   fi
+else
+  # create the zsh file
+  _update_zsh_update
 fi
-
-# update the zsh file
-_update_zsh_update
-