浏览代码

Fixed auto update.

Paramater substitution instead of command subsitution was being used
causing the calculation of time since last check to be incorrect.
Christopher Chow 14 年之前
父节点
当前提交
cc90e3aa06
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/check_for_upgrade.sh

+ 1 - 1
tools/check_for_upgrade.sh

@@ -16,7 +16,7 @@ then
     _update_zsh_update && return 0;
     _update_zsh_update && return 0;
   fi
   fi
 
 
-  epoch_diff=$((${_current_epoch} - $LAST_EPOCH))
+  epoch_diff=$(($(_current_epoch) - $LAST_EPOCH))
   if [ $epoch_diff -gt 6 ]
   if [ $epoch_diff -gt 6 ]
   then
   then
     echo "[Oh My Zsh] Would you like to check for updates?"
     echo "[Oh My Zsh] Would you like to check for updates?"