Skip to content

Commit

Permalink
Only tidy up stamps if they actually got created
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Jun 30, 2022
1 parent df609d3 commit 2fb5d74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/gftools/builder/ninja.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def build(self):

# Tidy up stamp files
for temporary in self.temporaries:
os.remove(temporary)
if os.path.exists(temporary):
os.remove(temporary)

def setup_rules(self):
self.w.comment("Rules")
Expand Down

0 comments on commit 2fb5d74

Please sign in to comment.