From 86d3d5aa74a30a98a69c1c7a623fef14c4846c3a Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 22 May 2016 00:19:51 +0100 Subject: [PATCH] corrected if --- lgsm/functions/command_stop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lgsm/functions/command_stop.sh b/lgsm/functions/command_stop.sh index 3bd868339..7878c5362 100644 --- a/lgsm/functions/command_stop.sh +++ b/lgsm/functions/command_stop.sh @@ -18,7 +18,7 @@ fn_stop_graceful_source(){ # waits up to 30 seconds giving the server time to shutdown gracefuly for seconds in {1..30}; do check_status.sh - if [ "${status}" != "0" ]; then + if [ "${status}" == "0" ]; then fn_print_ok "Graceful: rcon quit: ${seconds}: " fn_print_ok_eol_nl fn_scriptlog "Graceful: rcon quit: OK: ${seconds} seconds"