ソースを参照

requestrestart was not returning 0

Daniel Gibbs 11 年 前
コミット
fca56ce782
1 ファイル変更2 行追加1 行削除
  1. 2 1
      functions/fn_update_check

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