fix shellcheck prevent globbing

This commit is contained in:
Philipp Rothmann 2023-06-13 11:57:42 +02:00 committed by Moritz
parent 4d6371eba7
commit 9f93a55c09

View File

@ -96,7 +96,7 @@ if [[ \ $*\ != *\ --skip-backup\ * ]]; then
fi
# add volume paths to backup path
backup_paths+=(/var/lib/docker/volumes/${stack_name}_*)
backup_paths+=(/var/lib/docker/volumes/"${stack_name}"_*)
fi
done
@ -108,6 +108,7 @@ if [[ \ $*\ != *\ --skip-backup\ * ]]; then
fi
if [[ \ $*\ != *\ --skip-upload\ * ]]; then
echo "${backup_paths[@]}"
_restic backup --host "$server_name" --tag coop-cloud "${backup_paths[@]}"
fi