Skip to content

Commit 78b847e

Browse files
committed
Make sure to remove the old directories
1 parent 1f3f209 commit 78b847e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

make

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ def merge_pages():
118118

119119
def merge_git():
120120
if os.path.exists('build'):
121+
if os.path.exists('css'):
122+
shutil.rmtree('css')
123+
124+
if os.path.exists('js'):
125+
shutil.rmtree('js')
126+
121127
shutil.copytree('build/css', 'css')
122128
shutil.copytree('build/js', 'js')
123129
shutil.copyfile('build/index.html', 'index.html')

0 commit comments

Comments
 (0)