Переглянути джерело

fix remove _site content not entire directory so build not break httpd

encrypt 8 роки тому
батько
коміт
7dfd0d8113
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      boh

+ 2 - 2
boh

@@ -76,8 +76,8 @@ boh_markdown() {
 
 boh_build() {
     echo "Building all the things..."
-    rm -rf $destination_dir
-    mkdir $destination_dir
+    rm -rf $destination_dir/*
+    mkdir -p $destination_dir
     type boh_pre_build &> /dev/null && { boh_pre_build; }
     # extra "/" is used to increment the final count by 1
     cut_at=`echo "/"$source_dir | fold -w 1 | grep -c /`