]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
make.sh: Flag rootfiles that have lines starting with + or -
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 23 Sep 2024 19:35:24 +0000 (19:35 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 23 Sep 2024 19:35:24 +0000 (19:35 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index 3853982f8d61ed0a44aa79264574eaee92d260c6..2e6580651ae758c189e3e4c94b0919f7e2caa142 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -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