From fc128adf240261ac99ea3e3be8d65a92eda52a73 Mon Sep 17 00:00:00 2001 From: DreamsVoid Date: Fri, 9 Jul 2021 07:33:11 +0100 Subject: [PATCH] Add custom header (#17) Makes editing the header easier --- tinystatus | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tinystatus b/tinystatus index 0bcca7d..42dd45e 100755 --- a/tinystatus +++ b/tinystatus @@ -1,6 +1,7 @@ #!/usr/bin/env sh title=tinystatus +header="Global Status" timeout=10 tmp="$(mktemp -d)" checkfile="${1:-checks.csv}" @@ -83,7 +84,7 @@ li { list-style: none; margin-bottom: 2px; padding: 5px; border-bottom: 1px soli
-

Global status

+

${header}

EOF outagenb="$(find "${tmp}/ko" -mindepth 1 | grep -c 'status$')" if [ "${outagenb}" -ne 0 ]; then