cc90e3aa06cc3de32e4679dcccd0f00a2a4bdf79

Author
Christopher Chow <soliah@gmail.com>
Committer
Christopher Chow <soliah@gmail.com>
Date

Message

Fixed auto update.

Paramater substitution instead of command subsitution was being used
causing the calculation of time since last check to be incorrect.

Diff

 1diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh
 2index c59ebaed48ebd8b7a3778c6d81f34126d101aa24..4643739ca51b136737c4a1981e3354b8162cb66c 100644
 3--- a/tools/check_for_upgrade.sh
 4+++ b/tools/check_for_upgrade.sh
 5@@ -16,7 +16,7 @@ then
 6     _update_zsh_update && return 0;
 7   fi
 8 
 9-  epoch_diff=$((${_current_epoch} - $LAST_EPOCH))
10+  epoch_diff=$(($(_current_epoch) - $LAST_EPOCH))
11   if [ $epoch_diff -gt 6 ]
12   then
13     echo "[Oh My Zsh] Would you like to check for updates?"