Răsfoiți Sursa

Fixed update check bug

Daniel Gibbs 10 ani în urmă
părinte
comite
86ac8014b3
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      functions/command_monitor.sh

+ 2 - 2
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.