diff options
| author | Cai Cooper <2406847+cagiti@users.noreply.github.com> | 2021-03-01 07:17:54 +0000 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-01 08:17:54 +0100 | 
| commit | 6fbad5bf72fad4ecf30ba4d4ffee62bac582f0ed (patch) | |
| tree | 50f6c9bf2b453c46ed4fb510a08e27d7dd567006 /tools | |
| parent | 9a9f3831925432fdf4352c24a002506a06d329c1 (diff) | |
| download | zsh-6fbad5bf72fad4ecf30ba4d4ffee62bac582f0ed.tar.gz zsh-6fbad5bf72fad4ecf30ba4d4ffee62bac582f0ed.tar.bz2 zsh-6fbad5bf72fad4ecf30ba4d4ffee62bac582f0ed.zip | |
fix(update): don't error on upgrade no-op (#9685)
* 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à <hello@mcornella.com>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/check_for_upgrade.sh | 3 | ||||
| -rwxr-xr-x | tools/upgrade.sh | 1 | 
2 files changed, 1 insertions, 3 deletions
| diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh index 88e521eea..29a48b880 100644 --- a/tools/check_for_upgrade.sh +++ b/tools/check_for_upgrade.sh @@ -24,8 +24,7 @@ function update_last_updated_file() {  }  function update_ohmyzsh() { -  ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh" --interactive -  if [[ "$?" = (0|80) ]]; then +  if ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh" --interactive; then      update_last_updated_file    fi  } 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!" | 
