summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChristopher Chow <soliah@gmail.com>2011-02-04 11:33:20 +1100
committerChristopher Chow <soliah@gmail.com>2011-02-04 11:33:20 +1100
commitcc90e3aa06cc3de32e4679dcccd0f00a2a4bdf79 (patch)
treeceddf2f45f09ef919155979617313b6dc2b7b182 /tools
parent051fb5f1d5d0c72812989bd4dfd0be33f43d75ad (diff)
downloadzsh-cc90e3aa06cc3de32e4679dcccd0f00a2a4bdf79.tar.gz
zsh-cc90e3aa06cc3de32e4679dcccd0f00a2a4bdf79.tar.bz2
zsh-cc90e3aa06cc3de32e4679dcccd0f00a2a4bdf79.zip
Fixed auto update.
Paramater substitution instead of command subsitution was being used causing the calculation of time since last check to be incorrect.
Diffstat (limited to 'tools')
-rw-r--r--tools/check_for_upgrade.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh
index c59ebaed4..4643739ca 100644
--- a/tools/check_for_upgrade.sh
+++ b/tools/check_for_upgrade.sh
@@ -16,7 +16,7 @@ then
_update_zsh_update && return 0;
fi
- epoch_diff=$((${_current_epoch} - $LAST_EPOCH))
+ epoch_diff=$(($(_current_epoch) - $LAST_EPOCH))
if [ $epoch_diff -gt 6 ]
then
echo "[Oh My Zsh] Would you like to check for updates?"