Update .zsh-update immediately

This updates `LAST_EPOCH` in `~/.zsh-update` immediately after starting the upgrade. This prevents the "Would you like to check for updates?" prompt from showing up after starting the upgrade process and opening a new shell.
This commit is contained in:
Melvin Lammerts 2016-07-26 12:10:39 +02:00 committed by GitHub
commit c6468f0b72

View file

@ -11,9 +11,9 @@ function _update_zsh_update() {
}
function _upgrade_zsh() {
env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh
# update the zsh file
_update_zsh_update
env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh
}
epoch_target=$UPDATE_ZSH_DAYS