diff options
author | Christopher Chow <soliah@gmail.com> | 2011-02-04 11:33:20 +1100 |
---|---|---|
committer | Christopher Chow <soliah@gmail.com> | 2011-02-04 11:33:20 +1100 |
commit | cc90e3aa06cc3de32e4679dcccd0f00a2a4bdf79 (patch) | |
tree | ceddf2f45f09ef919155979617313b6dc2b7b182 /tools | |
parent | 051fb5f1d5d0c72812989bd4dfd0be33f43d75ad (diff) | |
download | zsh-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.sh | 2 |
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?" |