From d978f385e52a19f2fd41e8c7ceb2f7c0a4dfc56c Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Thu, 21 Jan 2021 11:52:09 +0100 Subject: fix(updater): refresh date of last update only on successful update --- tools/check_for_upgrade.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools/check_for_upgrade.sh') diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh index d0ceba92d..88e521eea 100644 --- a/tools/check_for_upgrade.sh +++ b/tools/check_for_upgrade.sh @@ -25,7 +25,9 @@ function update_last_updated_file() { function update_ohmyzsh() { ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh" --interactive - update_last_updated_file + if [[ "$?" = (0|80) ]]; then + update_last_updated_file + fi } () { -- cgit v1.2.3-70-g09d2