bugfix: work with empty collection and without sync

This commit is contained in:
2025-07-03 14:06:53 +02:00
parent 58680a130d
commit e1d6b2b08e
2 changed files with 9 additions and 11 deletions

View File

@@ -5,10 +5,11 @@ if [ ! -f "$CONFIGFILE" ]; then
fi
# shellcheck source=/dev/null
. "$CONFIGFILE"
if [ -z "${ROOT:-}" ] || [ -z "${SYNC_CMD:-}" ] || [ -z "${COLLECTION_LABELS:-}" ]; then
if [ -z "${ROOT:-}" ] || [ -z "${COLLECTION_LABELS:-}" ]; then
err "Configuration is incomplete."
exit 1
fi
SYNC_CMD="${SYNC_CMD:-}"
export ROOT
export SYNC_CMD
export COLLECTION_LABELS