Clean up temporary directories on exit

This commit is contained in:
Paul Wise
2021-03-31 16:55:46 +08:00
committed by Mark Nauwelaerts
parent 704869df29
commit da60201ae3

View File

@@ -26,6 +26,11 @@ $workdir = "#{Dir.home}/.cache/git-remote-hg"
$builddir = "/tmp/git-remote-hg-build"
$testoutdir = "/tmp/git-remote-hg-tests"
at_exit {
FileUtils.remove_entry($builddir)
FileUtils.remove_entry($testoutdir)
}
QUIET, LOW, HIGH = (1..3).to_a
$verbosity = LOW