Skip to content

Commit

Permalink
Ensure fagenrules handles incomplete lines
Browse files Browse the repository at this point in the history
Anding echo here ensures at least one newline between each
concatenated .rules file, preventing a compiled.rules edge case.
  • Loading branch information
ttybitnik authored and radosroka committed Feb 9, 2025
1 parent 3df9987 commit b86eb34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init/fagenrules
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ fi
umask 0137
echo "## This file is automatically generated from $SourceRulesDir" >> "${TmpRules}"
for rules in $(/bin/ls -1v ${SourceRulesDir} | grep "\.rules$") ; do
cat ${SourceRulesDir}/"${rules}"
cat ${SourceRulesDir}/"${rules}" && echo
done | awk '
BEGIN {
rest = 0;
Expand Down

0 comments on commit b86eb34

Please sign in to comment.