This is an automated email from the ASF dual-hosted git repository.
joshfischer pushed a commit to branch joshfischer/site-tweaks
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git
The following commit(s) were added to refs/heads/joshfischer/site-tweaks by
this push:
new 72209ab attemtpting to correct cp command
72209ab is described below
commit 72209abcb3160024f2e9a38231efb54f38d9317d
Author: Josh Fischer <[email protected]>
AuthorDate: Sat Dec 7 22:04:18 2019 -0600
attemtpting to correct cp command
---
website2/website/scripts/publish_site.sh | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/website2/website/scripts/publish_site.sh
b/website2/website/scripts/publish_site.sh
index 0a0106c..1c203a8 100755
--- a/website2/website/scripts/publish_site.sh
+++ b/website2/website/scripts/publish_site.sh
@@ -38,10 +38,14 @@ HERON_SITE_TMP=/tmp/heron-site
git config user.email "[email protected]"
git checkout asf-site
- # copy the generated dir
- rm -rf $HERON_SITE_TMP/content/*
+
+ # clean content directory
+ rm -rf $HERON_SITE_TMP/content/
+ mkdir $HERON_SITE_TMP/content
+
+ # copy the generated dir
cp -r $WORK_DIR/* $HERON_SITE_TMP/content
- cp -a ${ROOT_DIR}/.htaccess ${ROOT_DIR}/content
+ cp -a $ROOT_DIR/.htaccess $HERON_SITE_TMP/content
# push all of the results to asf-site branch
git add -A .
git diff-index --quiet HEAD || (git commit -m "git-site-role commit from
$ME" && git push -q origin HEAD:asf-site)