From 5e33f191146ae12bb52d17c6defe81f5e917ff84 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Wed, 15 Dec 2021 20:20:17 -0500 Subject: [PATCH] satisfy shellcheck a bit more --- mail-setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail-setup b/mail-setup index 7012669..526c51e 100755 --- a/mail-setup +++ b/mail-setup @@ -290,7 +290,7 @@ i() { # install file setini() { key="$1" value="$2" section="$3" file="/etc/radicale/config" - sed -ri "/ *\[$section\]/,/^ *\[[^]]+\]/{/^\s*$key[[:space:]=]/d};/ *\[$section\]/a $key = $value" "$file" + sed -ri "/ *\[$section\]/,/^ *\[[^]]+\]/{/^\s*${key}[[:space:]=]/d};/ *\[$section\]/a $key = $value" "$file" } soff () { for service; do @@ -1321,7 +1321,7 @@ xioE3sYKdjOt+p6mlg3l8+OLtODEFPHDqwIBAg== -----END DH PARAMETERS----- EOF { - if [[ $HOSTNAME == $MAIL_HOST ]]; then + if [[ $HOSTNAME == "$MAIL_HOST" ]]; then cat <<'EOF' ssl_cert =