Skip to content

Commit 9dca8a9

Browse files
Delete tmp check file right away
1 parent 57f8bbe commit 9dca8a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/glencoesoftware/bioformats2raw/Converter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,11 +1185,11 @@ public Integer call() throws Exception {
11851185
// expect 'success' to be true in the noexec case, even though
11861186
// the file will not actually be executable
11871187
boolean success = tmpdirCheck.setExecutable(true);
1188-
tmpdirCheck.deleteOnExit();
11891188
if (!success || !tmpdirCheck.canExecute()) {
11901189
throw new RuntimeException(System.getProperty("java.io.tmpdir") +
11911190
" is noexec; fix it or specify a different java.io.tmpdir");
11921191
}
1192+
tmpdirCheck.delete();
11931193

11941194
OpenCVTools.loadOpenCV();
11951195

0 commit comments

Comments
 (0)