From d91353ce02fa44d749c901e0adedd67fdb45f7fc Mon Sep 17 00:00:00 2001 From: Logan Lipke Date: Thu, 18 Jun 2020 16:59:54 -0700 Subject: [PATCH] Added missing count to grep --- updateTest.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updateTest.bash b/updateTest.bash index b10bd295..d50e07fe 100755 --- a/updateTest.bash +++ b/updateTest.bash @@ -13,7 +13,7 @@ GUIDIR="${HL}/LANforgeGUI_${verNum}" ST="/tmp/summary.txt" IP="192.168.95.239" -numFound=$(find "${GUIDIR} -iname down-check" -mmin 60 | grep "down-check") +numFound=$(find "${GUIDIR} -iname down-check" -mmin 60 | grep -c "down-check") if [[ $numFound == 1 ]]; then ping -c2 -i1 -nq -w2 -W2 ${IP} if [[ 1 != $? ]]; then