From 0906c67f7f812899873d5a15d1510d738ed724f3 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 27 Jun 2021 20:55:50 +0200 Subject: print-status-html: *really* ignore empty watch_dirs --- print-status-html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/print-status-html b/print-status-html index 9e67738..0815cd0 100755 --- a/print-status-html +++ b/print-status-html @@ -4,12 +4,13 @@ { - if [ -n "${watch_dirs[@]}" ]; then + printf '%s\n' \ + 'Status Of Backup Server' - cat <Status Of Backup Server -

Partitions

-EOF + if [ -n "${!watch_dirs[@]}" ]; then + + printf '%s\n' \ + '

Partitions

' for dir in "${watch_dirs[@]}"; do { -- cgit v1.2.3-54-g00ecf