mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
fix: allow running with nounset option
This commit is contained in:
parent
e42ac8c57b
commit
1902a0544c
8 changed files with 15 additions and 15 deletions
|
|
@ -15,8 +15,8 @@ zstyle -s ':omz:update' mode update_mode || {
|
|||
update_mode=prompt
|
||||
|
||||
# If the mode zstyle setting is not set, support old-style settings
|
||||
[[ "$DISABLE_UPDATE_PROMPT" != true ]] || update_mode=auto
|
||||
[[ "$DISABLE_AUTO_UPDATE" != true ]] || update_mode=disabled
|
||||
[[ "${DISABLE_UPDATE_PROMPT:-}" != true ]] || update_mode=auto
|
||||
[[ "${DISABLE_AUTO_UPDATE:-}" != true ]] || update_mode=disabled
|
||||
}
|
||||
|
||||
# Cancel update if:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue