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 +#