Do not fail on publishing command

If no documents are published to /draft, the "cp -a" would fail, rewrite
it so that it always succeeds.

If any command fails, nothing gets uploaded ;(

Change-Id: Ib9c6254504f868fd1a8eb772d5df9651448adc42
This commit is contained in:
Andreas Jaeger 2015-05-09 20:40:54 +02:00
parent 65734a2d79
commit 16f7398bef
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ commands =
# Do not publish Debian guide
rm -rf publish-docs/draft/install-guide/install/apt-debian
# Publish install-guide and config-reference to /kilo
cp -a publish-docs/draft publish-docs/kilo
bash -c "cp -a publish-docs/draft publish-docs/kilo || true"
# Replace links to /draft with links to /kilo/
# This needs bash so that tox does not interpret the *
bash -c "sed -i -e 's|/draft/|/kilo/|g' publish-docs/kilo/*/atom.xml publish-docs/kilo/*/*/*/atom.xml publish-docs/kilo/*/*.html publish-docs/kilo/*/*/*/*/*.html publish-docs/kilo/*/*/*/*.html publish-docs/kilo/*/*/*.html publish-docs/kilo/*/*.html || true"