summaryrefslogtreecommitdiff
path: root/lib/cli.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cli.zsh')
-rw-r--r--lib/cli.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cli.zsh b/lib/cli.zsh
index 253c554c1..38cdc449c 100644
--- a/lib/cli.zsh
+++ b/lib/cli.zsh
@@ -384,7 +384,7 @@ function _omz::update {
# Remove update lock if it exists
command rm -rf "$ZSH/log/update.lock"
# Restart the zsh session
- if [[ $ret -eq 0 ]]; then
+ if [[ $ret -eq 0 && "$1" != --unattended ]]; then
# Check whether to run a login shell
[[ "$ZSH_ARGZERO" = -* ]] && exec -l "${ZSH_ARGZERO#-}" || exec "$ZSH_ARGZERO"
fi