IMP(shfmt): add shell formatter

This commit is contained in:
Thibault Ayanides
2020-12-04 14:08:01 +01:00
parent bc1aa65b91
commit 3a342b784a
300 changed files with 2370 additions and 2427 deletions

View File

@ -10,10 +10,10 @@ test_audit() {
local test_user="testduplicateuser"
local dir="/etc/passwd"
describe Tests purposely failing
describe Tests purposely failing
useradd "$test_user"
temp=$(tail -1 "$dir")
echo "$temp" >> "$dir"
echo "$temp" >>"$dir"
register_test retvalshouldbe 1
register_test contain "Duplicate username"
run noncompliant /opt/debian-cis/bin/hardening/"${script}".sh --audit-all