make.sh: Flag rootfiles that have lines starting with + or -

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2024-09-23 19:35:24 +00:00
parent 8ce034f7d2
commit aab8f48aae

View File

@@ -2247,6 +2247,12 @@ check_rootfiles() {
print_headline "Checking for rootfile consistency..."
# Check for changes
if ! check_rootfiles_for_pattern "^[\+\-]" \
"Rootfiles have changed in them"; then
failed=1
fi
# Check for /etc/init.d
if ! check_rootfiles_for_pattern "^etc/init\.d/" \
"/etc/init.d/* has been found. Please replace by /etc/rc.d/init.d"; then