]> git.za3k.com Git - za3k.git/commitdiff
Fix syntax error
authorZachary Vance <vanceza@gmail.com>
Thu, 8 Oct 2015 05:31:12 +0000 (22:31 -0700)
committerZachary Vance <vanceza@gmail.com>
Thu, 8 Oct 2015 05:31:12 +0000 (22:31 -0700)
cgi-bin/service.status.d/logging - analog

index 09420d7445ddc8317f24f999af3bf736c67828c4..92a0a819b68e859559084fd877a301406c13a25a 100644 (file)
@@ -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