From 27b6e16c907a32b9168a3f19cb06b2659d276c3c Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 25 Jul 2017 02:09:32 +0100 Subject: [PATCH] Delete files in build dir --- publish.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/publish.sh b/publish.sh index 6cd4bfe9..a2000c6c 100755 --- a/publish.sh +++ b/publish.sh @@ -15,8 +15,8 @@ mkdir -p $BUILD_DIR cp -R .git $BUILD_DIR pushd $BUILD_DIR git checkout $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH -rm -r **/* || exit 0 popd +rm -rf ${BUILD_DIR}/**/* || exit 0 # Re-generate the site. npm run prod