mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-19 20:29:45 +01:00
fix(cli): exit omz update
with correct error code (#10342)
This commit is contained in:
parent
f1dd97bb2a
commit
1e5e834e0f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue