Explorar el Código

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

encrypt hace 9 años
padre
commit
7dfd0d8113
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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 /`