From 2b97e1f19d04cf11926d243765515892811f1875 Mon Sep 17 00:00:00 2001 From: mckmonster Date: Sat, 10 Sep 2022 17:26:40 +0200 Subject: [PATCH] close #1 --- checks.csv | 1 + tinystatus | 3 +++ 2 files changed, 4 insertions(+) diff --git a/checks.csv b/checks.csv index fe07509..987d686 100644 --- a/checks.csv +++ b/checks.csv @@ -4,3 +4,4 @@ http6, 200, Google Website (IPv6), https://google.com http, 404, Google 404, https://google.com/dummy ping, 0, Google ping, 8.8.8.8 port, 0, Google DNS, 8.8.8.8 53 + diff --git a/tinystatus b/tinystatus index 7a6311c..0cf9923 100755 --- a/tinystatus +++ b/tinystatus @@ -25,6 +25,9 @@ check(){ host="${2}" name="${3}" expectedcode="${4}" + if test -z ${ctype} + then return + fi IPv="$(echo "${ctype}" | grep -o '[46]$')" case "${ctype}" in