fix(cli): exit omz update with correct error code (#10342)

This commit is contained in:
Sina Tak Tehrani 2021-10-25 20:28:22 +02:00 committed by GitHub
parent f1dd97bb2a
commit 1e5e834e0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -755,9 +755,9 @@ function _omz::update {
# Run update script
if [[ "$1" != --unattended ]]; then
ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh" --interactive
ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh" --interactive || return $?
else
ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh"
ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh" || return $?
fi
# Update last updated file