I have this make recipe.
run_pipelines:
@[ "${filter}" ] || ( filter="."; ) &&
filter=$$(echo "$$filter" | sed -e 's/./.*/g') && echo $${filter}"<3" &&
echo "33[1;34m#######Running Pipelines for $${filter}#######33[0m" &&
find v2/services -type f -regex ".*$${filter}.*.jsonnet" -print0 |
xargs -r -0 -I {} bash -c 'echo -e "33[1;32mjsonnet {} 33[0m"; jsonnet {} || exit $$?'
.PHONY: run_pipelines
It loops through all jsonnet files and run jsonnet command.
I want to it fail and stop immediately after a single jsonnet command fails.
I have tried few things but nothing working.