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>
This commit is contained in:
Cai Cooper
2021-03-01 07:17:54 +00:00
committed by GitHub
parent 9a9f383192
commit 6fbad5bf72
3 changed files with 5 additions and 6 deletions

View File

@@ -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
}