Fix whitespace handling in CI rule generation

parent 3f680f03
......@@ -169,8 +169,8 @@ time_warp_avadanlik:
# Create per book jobs in the CI config
define ci_setup ?=
yq -M -s -y -e --arg sources "$(SOURCES)" \
'. + ($$sources | [splits(" ") | { ((.) + ".pdfs") : { "extends": ".pdfs", "artifacts": { "paths": [((.) + "*")] } }}]) | add'
yq -M -s -y -e --arg sources "$(strip $(SOURCES))" \
'. + ($$sources | [splits(" ") as $$target | { ($$target + ".pdfs") : { "extends": ".pdfs", "artifacts": { "paths": [($$target + "*")] } }}]) | add'
endef
pre_sync = $(sync_nextcloud)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment