From fca56ce782e0ca27231695b613f9c9c40f61efe9 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 26 Apr 2015 20:11:18 +0100 Subject: [PATCH] requestrestart was not returning 0 --- functions/fn_update_check | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/fn_update_check b/functions/fn_update_check index e18be49f2..2ec9c8d46 100644 --- a/functions/fn_update_check +++ b/functions/fn_update_check @@ -72,7 +72,8 @@ sleep 1 fn_printok "Checking for update: Server logs" fn_scriptlog "Checking for update: Server logs" sleep 1 -requestrestart=$(grep -sc "MasterRequestRestart" "${consolelog}") +requestrestart=$(grep -Ec "MasterRequestRestart" "${consolelog}") +echo "${requestrestart}" if [ "${requestrestart}" -ge "1" ]; then fn_printoknl "Server requesting update" sleep 1