From d5d3748b0269ffa8162f99dac1ae53d72be62bda Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 30 Mar 2022 15:50:55 +0000 Subject: [PATCH] backup: Move empty check to the correct place Signed-off-by: Michael Tremer --- config/backup/backup.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/backup/backup.pl b/config/backup/backup.pl index 2e9c0c5731..8ea399bb9e 100644 --- a/config/backup/backup.pl +++ b/config/backup/backup.pl @@ -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}" -- 2.39.5