Unverified Commit 1e5e834e authored by Sina Tak Tehrani's avatar Sina Tak Tehrani Committed by GitHub

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

parent f1dd97bb
...@@ -755,9 +755,9 @@ function _omz::update { ...@@ -755,9 +755,9 @@ function _omz::update {
# Run update script # Run update script
if [[ "$1" != --unattended ]]; then if [[ "$1" != --unattended ]]; then
ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh" --interactive ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh" --interactive || return $?
else else
ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh" ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh" || return $?
fi fi
# Update last updated file # Update last updated file
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment