From c6468f0b72faecf3888b3347256931e0bdb88277 Mon Sep 17 00:00:00 2001 From: Melvin Lammerts Date: Tue, 26 Jul 2016 12:10:39 +0200 Subject: [PATCH] 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. --- tools/check_for_upgrade.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh index 881bc6c49..555d2b187 100644 --- a/tools/check_for_upgrade.sh +++ b/tools/check_for_upgrade.sh @@ -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