diff --git a/inventory.sh b/inventory.sh index 7c7000d..2dd238e 100755 --- a/inventory.sh +++ b/inventory.sh @@ -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"