fix(mcb): timestamp disabled for MCB as breaks update check

This commit is contained in:
Daniel Gibbs 2024-08-11 19:32:55 +01:00
parent 4c9223c88d
commit d86bec9acf
No known key found for this signature in database
GPG Key ID: 2076B128385E8C55

View File

@ -80,7 +80,8 @@ fn_start_tmux() {
# Enable console logging.
if [ "${consolelogging}" == "on" ] || [ -z "${consolelogging}" ]; then
if [ "${logtimestamp}" == "on" ]; then
# timestamp will break mcb update check.
if [ "${logtimestamp}" == "on" ] && [ "${shortname}" != "mcb" ]; then
tmux -L "${socketname}" pipe-pane -o -t "${sessionname}" "exec bash -c \"cat | $addtimestamp\" >> '${consolelog}'"
else
tmux -L "${socketname}" pipe-pane -o -t "${sessionname}" "exec cat >> '${consolelog}'"