From 00cc64c6c54dd8b824259fa1faff71c01e408a91 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Tue, 25 Aug 2015 14:04:43 +0100 Subject: [PATCH] Different special treatment of README --- docs/src/main/asciidoc/ghpages.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/main/asciidoc/ghpages.sh b/docs/src/main/asciidoc/ghpages.sh index 64aaed8f..ed9a0005 100755 --- a/docs/src/main/asciidoc/ghpages.sh +++ b/docs/src/main/asciidoc/ghpages.sh @@ -37,14 +37,14 @@ for f in docs/target/generated-docs/*; do fi done -[ -e README.adoc ] && git add -A README.adoc -git commit -a -m "Sync docs from $branch to gh-pages" +git add -A README.adoc || echo "No change to README.adoc" +git commit -a -m "Sync docs from $branch to gh-pages" || echo "Nothing committed" # Uncomment the following push if you want to auto push to # the gh-pages branch whenever you commit to branch locally. # This is a little extreme. Use with care! ################################################################### -git push origin gh-pages +git push origin gh-pages || echo "Cannot push gh-pages" # Finally, switch back to the current branch and exit block git checkout $branch