mirror of
https://github.com/ovh/debian-cis.git
synced 2024-11-22 13:37:02 +01:00
Fix typo in test skeleton and add shellcheck comment
This commit is contained in:
parent
bf3bfc2a91
commit
2dd753e5e7
@ -1,9 +1,11 @@
|
|||||||
|
# run-shellcheck
|
||||||
test_audit() {
|
test_audit() {
|
||||||
# Make all variable local to the function by using `local`
|
# Make all variable local to the function by using `local`
|
||||||
|
|
||||||
# Optional part, only here if you need to change the audit script's default configuration
|
# Optional part, only here if you need to change the audit script's default configuration
|
||||||
describe Running void to generate the conf file that will later be edited
|
describe Running void to generate the conf file that will later be edited
|
||||||
/opt/debian-cis/bin/hardening/"${script_id}".sh || true
|
# shellcheck disable=2154
|
||||||
|
/opt/debian-cis/bin/hardening/"${script}".sh || true
|
||||||
# for instance
|
# for instance
|
||||||
echo 'EXCEPTIONS="$EXCEPTIONS <some file to treat as exception>"' >> /opt/debian-cis/etc/conf.d/"${script}".cfg
|
echo 'EXCEPTIONS="$EXCEPTIONS <some file to treat as exception>"' >> /opt/debian-cis/etc/conf.d/"${script}".cfg
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user