From: Zachary Vance Date: Thu, 8 Oct 2015 05:31:12 +0000 (-0700) Subject: Fix syntax error X-Git-Url: https://git.za3k.com/?a=commitdiff_plain;h=33926225bbba6cebe1eb73a01ee7aeb109b3e353;p=za3k.git Fix syntax error --- diff --git a/cgi-bin/service.status.d/logging - analog b/cgi-bin/service.status.d/logging - analog index 09420d7..92a0a81 100644 --- a/cgi-bin/service.status.d/logging - analog +++ b/cgi-bin/service.status.d/logging - analog @@ -1,7 +1,8 @@ -./up? http://za3k.com/~logs/analog.html || exit 1 -&& { -SIZE=$(curl -s http://za3k.com/~logs/analog.html | wc -c) -if [ "${SIZE}" -lt 20000 ]; then - echo "http://za3k.com/~logs/analog.html is too short, probably failing" +URL="http://za3k.com/~logs/analog.html" +./up? "${URL}" || exit 1 +SIZE=$(curl -s "${URL}" | wc -c) +TARGET_SIZE=20000 +if [ "${SIZE}" -lt "${TARGET_SIZE}" ]; then + echo "${URL} is too short (<${TARGET_SIZE} bytes), probably failing" exit 1 fi