Skip to content

Commit

Permalink
remove tmpfile when composition finished
Browse files Browse the repository at this point in the history
  • Loading branch information
lalawue committed Jan 23, 2020
1 parent 7008b44 commit c7f1838
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions MarkdownProjectCompositor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -330,13 +330,14 @@ function site.processProjects( config )
md.compositeBody( config, proj, filename, tempFile, destFile )
md.compositeFooter( config, proj, filename, destFile )
md.convertDos2unix( config, destFile )
end
end -- while

if proj.after then
proj.after( config, proj )
end
end
end
end -- proj.res
end -- for _, proj
os.remove(config.tmpfile or kTmpFilePath)
end

function site.main( configFile, basePath )
Expand Down

0 comments on commit c7f1838

Please sign in to comment.