forked from evolix/evocheck
fix shellcheck
This commit is contained in:
parent
5c5a061d59
commit
69937e9c2d
|
@ -1235,8 +1235,8 @@ check_sshpermitrootno() {
|
||||||
# -T doesn't require the additional -C.
|
# -T doesn't require the additional -C.
|
||||||
sshd_args=
|
sshd_args=
|
||||||
fi
|
fi
|
||||||
# XXX: We want parameter expension here
|
# shellcheck disable=SC2086
|
||||||
if ! (sshd -T $sshd_args | grep -q 'permitrootlogin no'); then
|
if ! (sshd -T ${sshd_args} | grep -q 'permitrootlogin no'); then
|
||||||
failed "IS_SSHPERMITROOTNO" "PermitRoot should be set to no"
|
failed "IS_SSHPERMITROOTNO" "PermitRoot should be set to no"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue