mirror of
https://github.com/zdharma-continuum/zinit-annex-bin-gem-node.git
synced 2026-09-10 07:26:18 -04:00
*atclone-handler: Correctly detect non-empty update
This commit is contained in:
parent
a529233421
commit
65eaae6364
|
|
@ -175,8 +175,9 @@ if (( ${+ZINIT_ICE[sbin]} )) {
|
|||
if [[ -x $file ]]; then
|
||||
(( !ICE_OPTS[opt_-q,--quiet] )) && \
|
||||
if [[ -x $target_binary ]]; then
|
||||
[[ $hook == atclone || $ZINIT[annex-multi-flag:pull-active] == 2 ]] && \
|
||||
if [[ $hook == atclone || $ZINIT[annex-multi-flag:pull-active] -ge 2 ]] {
|
||||
print -P -- "%F{38}bin-gem-node annex: %F{154}${${${hook:#*atclone}:+Re-c}:-C}reated the %F{219}$fnam%F{154} shim and set +x on the %F{219}${target_binary:t}%F{154} binary%f"
|
||||
}
|
||||
else
|
||||
print -P -- "%F{38}bin-gem-node annex: %F{154}${${${hook:#*atclone}:+Re-c}:-C}reated the %F{219}$fnam%F{154} shim %F{160}however the %F{219}${target_binary:t}%F{160} binary does not exist or failed to set +x on it%f"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue