mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
fix: remove local -A OPTS that shadows caller's parallel flag (#774)
This commit is contained in:
parent
61a0244bb4
commit
e88ed77319
|
|
@ -3398,10 +3398,12 @@ print -- "\nAvailable ice-modifiers:\n\n${ice_order[*]}"
|
||||||
|
|
||||||
local -F2 SECONDS=0
|
local -F2 SECONDS=0
|
||||||
|
|
||||||
# Always run quietly during bulk updates
|
# Silence self-update during bulk updates, then restore the original quiet state
|
||||||
local -A OPTS
|
# (avoid re-declaring OPTS as local — it would shadow the caller's flags like --parallel)
|
||||||
|
local _saved_quiet=${OPTS[opt_-q,--quiet]:-0}
|
||||||
OPTS[opt_-q,--quiet]=1
|
OPTS[opt_-q,--quiet]=1
|
||||||
.zinit-self-update
|
.zinit-self-update
|
||||||
|
OPTS[opt_-q,--quiet]=$_saved_quiet
|
||||||
|
|
||||||
[[ $2 = restart ]] && \
|
[[ $2 = restart ]] && \
|
||||||
+zi-log "{msg2}Restarting the update with the new codebase loaded.{rst}"$'\n'
|
+zi-log "{msg2}Restarting the update with the new codebase loaded.{rst}"$'\n'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue