From 6fbad5bf72fad4ecf30ba4d4ffee62bac582f0ed Mon Sep 17 00:00:00 2001 From: Cai Cooper <2406847+cagiti@users.noreply.github.com> Date: Mon, 1 Mar 2021 07:17:54 +0000 Subject: fix(update): don't error on upgrade no-op (#9685) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Don't error on upgrade no-op No error code is required for a non failure scenario. * Manually check whether changes were pulled in `omz update` Co-authored-by: Marc Cornellà --- tools/upgrade.sh | 1 - 1 file changed, 1 deletion(-) (limited to 'tools/upgrade.sh') diff --git a/tools/upgrade.sh b/tools/upgrade.sh index 4b97540d6..417e06fe8 100755 --- a/tools/upgrade.sh +++ b/tools/upgrade.sh @@ -66,7 +66,6 @@ if git pull --rebase --stat origin master; then # Check if it was really updated or not if [[ "$(git rev-parse HEAD)" = "$last_commit" ]]; then message="Oh My Zsh is already at the latest version." - ret=80 # non-zero exit code to indicate no changes pulled else message="Hooray! Oh My Zsh has been updated!" -- cgit v1.2.3-70-g09d2