From 16f7398befdf8472484500312fd53e43b4226522 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 9 May 2015 20:40:54 +0200 Subject: [PATCH] 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 --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 0530c30ab6..9cb2df31a5 100644 --- a/tox.ini +++ b/tox.ini @@ -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"