SYNC_SERIAL=${1:-}; shift || true
if [ -z "$COMPONENTDIR" ]; then usage >&2; exit 1; fi
if [ -z "$SYNC_SOURCE" ]; then usage >&2; exit 1; fi
-COMPONENT=$(basename ${COMPONENTDIR})
+COMPONENT="$(basename "${COMPONENTDIR}")"
RSYNC="rsync"
RSYNC_BASE_OPTIONS="-rtvz --delete --links --hard-links --safe-links"