Преглед изворни кода

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

Daniel Gibbs пре 1 година
родитељ
комит
d86bec9acf
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      lgsm/modules/command_start.sh

+ 2 - 1
lgsm/modules/command_start.sh

@@ -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}'"