Commit b4aae7d2 authored by Vincent Pelletier's avatar Vincent Pelletier

Make fix-products-paths more reusable.

Also, simplify syntax (no need for a loop).
Also, actually propagate error from all commands.
parent afa89a95
......@@ -351,8 +351,9 @@ git-executable = ${git:location}/bin/git
[fix-products-paths]
recipe = plone.recipe.command
stop-on-error = true
dir = ${erp5:location}
command =
for DIR in "${erp5:location}"; do cd "$DIR"; rm -f Products ; ln -s product Products; touch product/__init__.py; done
rm -f "${:dir}/Products" && ln -s product "${:dir}/Products" && touch "${:dir}product/__init__.py"
update-command = ${:command}
[testrunner]
......
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