fix: allow running with nounset option

This commit is contained in:
Daniel McCormack 2026-04-21 11:42:58 +12:00
commit 1902a0544c
8 changed files with 15 additions and 15 deletions

View file

@ -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: