lf_curl.sh: fixes bash syntax error

This commit is contained in:
Jed Reynolds
2019-03-12 16:42:30 -07:00
parent 8d5863ab17
commit 0cd8123add

View File

@@ -27,10 +27,8 @@ Best if used from lf_generic_ping.pl to construct commands referencing this scri
while getopts ":d:hi:n:o:p:" OPT ; do
#echo "OPT[$OPT] OPTARG[$OPTARG]"
case $OPT in
h)
echo $help
exit 0
;;
@@ -84,11 +82,11 @@ for N in `seq 1 $NUM_LOOPS`; do
echo "Failed $DEST_HOST"
head -1 /tmp/lf_curl_se.$$
else
NUM_GOOD=$(( $NUM_GOOD++))
NUM_GOOD=$(( $NUM_GOOD +1))
head -1 /tmp/lf_curl_so.$$
head -1 /tmp/lf_curl_h.$$
fi
sleep 1
done
echo "Finished $NUM_LOOPS, $NUM_GOOD successful"
#
#