This is an automated email from the ASF dual-hosted git repository. rlenferink pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/celix-site.git
commit dd41aaa73a4db0ea5e6cb53a8a6dc0c88750953a Author: Roy Lenferink <rlenfer...@apache.org> AuthorDate: Sat Dec 29 14:02:20 2018 +0100 CELIX-449: Improvements for publish.sh script --- publish.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/publish.sh b/publish.sh index 01eddd0..07f7e39 100644 --- a/publish.sh +++ b/publish.sh @@ -46,10 +46,10 @@ git checkout ${SITE} > /dev/null 2>&1 # Remove the current contents of the SITE branch and replace them with the contents of the temp folder current_dir=${PWD} -rm -rf ${current_dir}/* +rm -rf ${current_dir}/content git rm -r --cached content/* > /dev/null 2>&1 mkdir -p ${current_dir}/content -cp -r ${tmp_dir}/* ${current_dir}/content +cp -rT ${tmp_dir}/* ${current_dir}/content # Commit the changes to the SITE branch message="Updated site from ${SOURCE} (${last_SHA})"