obs-aitum-multistream/build-aux/.functions/log_group

17 lines
284 B
Plaintext
Raw Permalink Normal View History

2024-06-13 17:17:25 +02:00
autoload -Uz log_info
if (( ! ${+_log_group} )) typeset -g _log_group=0
if (( ${+CI} )) {
if (( _log_group )) {
print "::endgroup::"
typeset -g _log_group=0
}
if (( # )) {
print "::group::${@}"
typeset -g _log_group=1
}
} else {
if (( # )) log_info ${@}
}