forked from github/pelican
Bad logic in delete output booleans. Pretty sure this is just a check to make sure the posts directory is not inside the output.
This commit is contained in:
parent
4a8b3ddb75
commit
651249a6c5
1 changed files with 2 additions and 2 deletions
|
|
@ -65,8 +65,8 @@ class Pelican(object):
|
||||||
|
|
||||||
# erase the directory if it is not the source and if that's
|
# erase the directory if it is not the source and if that's
|
||||||
# explicitely asked
|
# explicitely asked
|
||||||
if (self.delete_outputdir and
|
if (self.delete_outputdir and not
|
||||||
os.path.realpath(self.path).startswith(self.output_path)):
|
os.path.realpath(self.path).startswith(self.output_path)):
|
||||||
clean_output_dir(self.output_path)
|
clean_output_dir(self.output_path)
|
||||||
|
|
||||||
writer = self.get_writer()
|
writer = self.get_writer()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue