From 6fc75fdea7b6265fc05b1ad43d76bb55e0d8591e Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Fri, 1 Mar 2019 09:03:46 +1100 Subject: qsub: fix temporary directory cleanup --- lib/qsub.nix | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3