From b5c3043c56fb98060beb6c518fd5e008a7fb6e7d Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Fri, 13 May 2016 17:48:33 +0100 Subject: [PATCH] fixed error and OK display --- lgsm/functions/command_monitor.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lgsm/functions/command_monitor.sh b/lgsm/functions/command_monitor.sh index f3c270682..66924d307 100644 --- a/lgsm/functions/command_monitor.sh +++ b/lgsm/functions/command_monitor.sh @@ -22,7 +22,7 @@ fn_monitor_check_lockfile(){ fn_monitor_check_update(){ # Monitor will not check if update is running. - if [ "$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l)" >= "1" ]; then + if [ "$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l)" != "0" ]; then fn_print_info_nl "SteamCMD is currently checking for updates" fn_scriptlog "SteamCMD is currently checking for updates" sleep 1 @@ -68,7 +68,7 @@ fn_monitor_teamspeak3(){ fn_monitor_tmux(){ # checks that tmux session is running if [ "${status}" != "0" ]; then - fn_print_ok "Checking session: OK" + fn_print_ok "Checking session: " fn_print_ok_eol_nl fn_scriptlog "Checking session: OK" # runs gsquery check on game with specific engines.