Final travis fix: add -r flag to copy

This commit is contained in:
Philipp Oppermann
2015-11-07 00:19:09 +01:00
parent 5978234f15
commit 2691f2b5d7

View File

@@ -22,9 +22,7 @@ git clone --branch gh-pages git@github.com:$TRAVIS_REPO_SLUG deploy_blog
cd deploy_blog cd deploy_blog
git config user.name "blog update bot" git config user.name "blog update bot"
git config user.email "nobody@example.com" git config user.email "nobody@example.com"
rm -rf _posts cp -r ../posts _posts
rm -rf _pages/*
cp ../posts _posts
cp ../pages/* ./ cp ../pages/* ./
git add _posts _pages git add _posts _pages
git commit -qm "update blog to $TRAVIS_COMMIT" git commit -qm "update blog to $TRAVIS_COMMIT"