From: Ian Kelling Date: Thu, 16 Dec 2021 01:20:17 +0000 (-0500) Subject: satisfy shellcheck a bit more X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=5e33f191146ae12bb52d17c6defe81f5e917ff84;p=distro-setup satisfy shellcheck a bit more --- 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 =