1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-23 01:17:59 +00:00

Fixed auto update.

Paramater substitution instead of command subsitution was being used
causing the calculation of time since last check to be incorrect.
This commit is contained in:
Christopher Chow 2011-02-04 11:33:20 +11:00
parent 7896b58b32
commit 903426ceeb

View File

@ -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?"