1e5e834e0f6486a569efd6b12ce4e33624fef0c9
- Author
- Sina Tak Tehrani <ssttehrani@gmail.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
fix(cli): exit `omz update` with correct error code (#10342)
Diff
1diff --git a/lib/cli.zsh b/lib/cli.zsh
2index 4b14360c1e17450375bb9d92e0872614daaac5e0..0b6bbc6cb94be47de842fd881a10d07240d2f4dc 100644
3--- a/lib/cli.zsh
4+++ b/lib/cli.zsh
5@@ -755,9 +755,9 @@ function _omz::update {
6
7 # Run update script
8 if [[ "$1" != --unattended ]]; then
9- ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh" --interactive
10+ ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh" --interactive || return $?
11 else
12- ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh"
13+ ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh" || return $?
14 fi
15
16 # Update last updated file