From 33926225bbba6cebe1eb73a01ee7aeb109b3e353 Mon Sep 17 00:00:00 2001 From: Zachary Vance Date: Wed, 7 Oct 2015 22:31:12 -0700 Subject: [PATCH] Fix syntax error --- cgi-bin/service.status.d/logging - analog | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 -- 2.47.3