From 69937e9c2d59c28c583914d954c3abac9c496d70 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Thu, 28 Jul 2022 13:35:44 +0200 Subject: [PATCH] fix shellcheck --- evocheck.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evocheck.sh b/evocheck.sh index 4f96c88..ab5c363 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -1235,8 +1235,8 @@ check_sshpermitrootno() { # -T doesn't require the additional -C. sshd_args= fi - # XXX: We want parameter expension here - if ! (sshd -T $sshd_args | grep -q 'permitrootlogin no'); then + # shellcheck disable=SC2086 + if ! (sshd -T ${sshd_args} | grep -q 'permitrootlogin no'); then failed "IS_SSHPERMITROOTNO" "PermitRoot should be set to no" fi }