Don't save header in file

This commit is contained in:
Brice Waegeneire 2020-09-29 11:43:05 +02:00
parent 0089bc6c3d
commit d165a90aad

View file

@ -52,7 +52,9 @@ count_directives() {
}
display_results() {
printf 'File\tAllow\tOrder\tDeny\tSatsify\n'
mv -b "$files_with_directives" "$files_with_directives".bak || true
printf 'File\tAllow\tOrder\tDeny\tSatsify\n' >&2
# TODO make shellcheck happy
for file in $(cat $conf_files); do
count_directives "$file" | tee -a "$files_with_directives"