From 86ac8014b3995e7b0f0a87dd248b64e1052fdbed Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 6 Mar 2016 18:00:33 +0000 Subject: [PATCH] Fixed update check bug --- functions/command_monitor.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/command_monitor.sh b/functions/command_monitor.sh index 14e4c3c35..abe42cf38 100644 --- a/functions/command_monitor.sh +++ b/functions/command_monitor.sh @@ -23,7 +23,7 @@ fn_monitor_check_lockfile(){ fn_monitor_check_update(){ # Monitor will not check if update is running. updatecheck=$(ps -ef|grep "${selfname} update"|grep -v grep|wc -l) - if [ "${updatecheck}" >= "0" ]; then + if [ "${updatecheck}" != "0" ]; then fn_print_info_nl "SteamCMD is currently checking for updates" fn_scriptlog "SteamCMD is currently checking for updates" sleep 1 @@ -70,7 +70,7 @@ fn_monitor_tmux(){ # checks that tmux session is running tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -Ec "^${servicename}:") if [ "${tmuxwc}" == "1" ]; 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.