Skip to content

Commit

Permalink
do not work on CUSTOM folders
Browse files Browse the repository at this point in the history
  • Loading branch information
esokullu committed Apr 19, 2019
1 parent 0d5f0ee commit a3639e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/FileGeneration.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ public function generate(bool $regen = false)
throw new \Exception("There is an existing folder in: ".$site);
}
}
elseif(file_exists($site."/CUSTOM")) { // regen but CUSTOM
throw new \Exception("This is a custom folder, won't continue: ".$site);
}
elseif (file_exists($site)) {
unlink($site.".html");
$this->cleanupDir($site);
Expand Down

0 comments on commit a3639e6

Please sign in to comment.