Changed find parameters

This commit is contained in:
Logan Lipke
2020-06-18 17:06:24 -07:00
parent d91353ce02
commit a7610bcae3

View File

@@ -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 -c "down-check")
numFound=$(find ${GUIDIR} -name down-check -mmin 60 | grep -c down-check)
if [[ $numFound == 1 ]]; then
ping -c2 -i1 -nq -w2 -W2 ${IP}
if [[ 1 != $? ]]; then