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 {
# 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
......
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