backup: Only list files that exist

This will prevent tar from throwing any errors later on

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2022-03-30 13:40:33 +00:00
parent 4f0e7f24f2
commit b275771fdd

View File

@@ -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