From 0cd8123add930ac723fd2f7d3029f938e74829c1 Mon Sep 17 00:00:00 2001 From: Jed Reynolds Date: Tue, 12 Mar 2019 16:42:30 -0700 Subject: [PATCH] lf_curl.sh: fixes bash syntax error --- lf_curl.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lf_curl.sh b/lf_curl.sh index 38664c26..eb414641 100755 --- a/lf_curl.sh +++ b/lf_curl.sh @@ -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" -# \ No newline at end of file +#