aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2019-03-01 09:03:46 +1100
committerJustin Bedo <cu@cua0.org>2019-03-01 09:03:46 +1100
commit6fc75fdea7b6265fc05b1ad43d76bb55e0d8591e (patch)
treef124250265666a96ffc7c1464aa8f7a3fcd5813d /lib
parentf827a0142fc2e0f95deb18bc18ed372e444471e2 (diff)
qsub: fix temporary directory cleanup
Diffstat (limited to 'lib')
-rw-r--r--lib/qsub.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/qsub.nix b/lib/qsub.nix
index 235aa80..7984b9d 100644
--- a/lib/qsub.nix
+++ b/lib/qsub.nix
@@ -49,6 +49,7 @@ with lib;
function cleanup {
qdel $id 2>/dev/null || true
sleep ${toString sleepTime}
+ cd /
rm -rf ${tmpDir}/$id
}
trap cleanup INT TERM EXIT