mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-20 04:40:08 +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:
parent
051fb5f1d5
commit
cc90e3aa06
1 changed files with 1 additions and 1 deletions
|
@ -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?"
|
||||||
|
|
Loading…
Reference in a new issue