mirror of
https://github.com/Aitum/obs-aitum-multistream.git
synced 2024-11-25 19:52:29 +01:00
17 lines
284 B
Plaintext
17 lines
284 B
Plaintext
|
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 ${@}
|
||
|
}
|