]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commitdiff
backup: Move empty check to the correct place
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 30 Mar 2022 15:50:55 +0000 (15:50 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 30 Mar 2022 15:50:55 +0000 (15:50 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/backup/backup.pl

index 2e9c0c573163fa5d7d8abe4455bc4123ce25b64e..8ea399bb9eab115bf6b597d3cde3790601449b10 100644 (file)
@@ -37,11 +37,11 @@ list_addons() {
 process_includes() {
        local include
        for include in $@; do
-               # Skip any empty line (which will include /)
-               [ -n "${include}" ] || continue
-
                local file
                while read -r file; do
+                       # Skip any empty line (which will include /)
+                       [ -n "${file}" ] || continue
+
                        for file in /${file}; do
                                if [ -e "${file}" ]; then
                                        echo "${file}"