From: Michael Tremer Date: Wed, 30 Mar 2022 13:40:33 +0000 (+0000) Subject: backup: Only list files that exist X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b275771fdd10ac7116e5d400dc10d3148df8ac27;p=people%2Fstevee%2Fipfire-2.x.git backup: Only list files that exist This will prevent tar from throwing any errors later on Signed-off-by: Michael Tremer --- diff --git a/config/backup/backup.pl b/config/backup/backup.pl index 4cccc671db..2e9c0c5731 100644 --- a/config/backup/backup.pl +++ b/config/backup/backup.pl @@ -43,7 +43,9 @@ process_includes() { local file while read -r file; do for file in /${file}; do - echo "${file}" + if [ -e "${file}" ]; then + echo "${file}" + fi done done < "${include}" done | sort -u