mirror of
https://github.com/electron/electron.git
synced 2026-02-19 03:14:51 -05:00
fix: close patch_file before deleting it (#15055)
This commit is contained in:
committed by
Charles Kerr
parent
539d6d20b7
commit
2d186cb31a
@@ -325,6 +325,7 @@ def main():
|
||||
retcode = ExitStatus.DIFF
|
||||
|
||||
if patch_file.tell() == 0:
|
||||
patch_file.close()
|
||||
os.unlink(patch_file.name)
|
||||
else:
|
||||
print("\nTo patch these files, run:\n$ git apply {}\n"
|
||||
|
||||
Reference in New Issue
Block a user