mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01:00
fix(cli): exit omz update with correct error code (#10342)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user