mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
backup: Fix broken globbing expansion
This patch fixes globbing expansion in the backup include file list
which got broken in c7e0d73e7c.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Tested-by: Bernhard Bitsch <bernhard.bitsch@ipfire.org>
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
shopt -s nullglob
|
||||
|
||||
NOW="$(date "+%Y-%m-%d-%H:%M")"
|
||||
|
||||
list_addons() {
|
||||
@@ -38,10 +40,8 @@ process_includes() {
|
||||
for include in $@; do
|
||||
local file
|
||||
while read -r file; do
|
||||
for file in ${file}; do
|
||||
if [ -e "/${file}" ]; then
|
||||
echo "${file}"
|
||||
fi
|
||||
for file in /${file}; do
|
||||
echo "${file}"
|
||||
done
|
||||
done < "${include}"
|
||||
done | sort -u
|
||||
|
||||
Reference in New Issue
Block a user