[type/__dma*] Fix shellcheck errors

This commit is contained in:
Dennis Camera 2021-01-11 12:16:09 +01:00
parent 487574c865
commit f9f5c578f7
4 changed files with 4 additions and 4 deletions

View file

@ -158,7 +158,7 @@ if test -f "${__object:?}/parameter/send-test-mail"
then
if grep -q '^__mail_alias/root:' "${__messages_in:?}" \
|| grep -q '^__dma_auth/' "${__messages_in:?}" \
|| $config_updated
|| ${config_updated}
then
cat <<-CODE
sendmail root <<'EOF'

View file

@ -21,7 +21,7 @@
os=$(cat "${__global:?}/explorer/os")
# Install DMA
case $os
case ${os}
in
(alpine)
__package dma --state present

View file

@ -25,7 +25,7 @@
# different_password: a line exists but with a different password
# multiple: multiple lines matching host exist (should not happen)
auth_conf=$("${__type_explorer}/auth_conf")
auth_conf=$("${__type_explorer:?}/auth_conf")
test -r "${auth_conf}" || exit 0
awk -F'\n' '

View file

@ -40,7 +40,7 @@ then
exit 0
fi
case $state_should
case ${state_should}
in
(present)
test -n "${login}" || { echo '--login must be non-empty' >&2; exit 1; }