File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ export TMPDIR := $(HOME)/snap/firefox/common/tmp
16
16
$(TMPDIR ) :
17
17
mkdir -p $(TMPDIR )
18
18
19
+ export TMPDIR_CLEANUP = false
20
+
19
21
part% .forbook.asciidoc : part% .asciidoc
20
22
cat $(subst .forbook.,.,$@ ) \
21
23
| sed ' s/^== /= /' \
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ class ApplyCommitException(Exception):
73
73
pass
74
74
75
75
76
- class SourceTree ( object ) :
76
+ class SourceTree :
77
77
def __init__ (self ):
78
78
self .tempdir = Path (tempfile .mkdtemp ())
79
79
self .processes = []
@@ -89,7 +89,7 @@ def cleanup(self):
89
89
os .killpg (process .pid , signal .SIGTERM )
90
90
except OSError :
91
91
pass
92
- if getpass . getuser () != "harry" :
92
+ if os . environ . get ( "TMPDIR_CLEANUP" ) not in ( "0" , "false" ) :
93
93
shutil .rmtree (self .tempdir )
94
94
95
95
def run_command (
You can’t perform that action at this time.
0 commit comments