*atclone-handler: Correctly detect non-empty update

This commit is contained in:
Sebastian Gniazdowski 2020-06-12 23:57:29 +02:00
parent a529233421
commit 65eaae6364

View file

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