aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/qsub.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/qsub.nix b/lib/qsub.nix
index 7984b9d..6b40431 100644
--- a/lib/qsub.nix
+++ b/lib/qsub.nix
@@ -49,8 +49,7 @@ with lib;
function cleanup {
qdel $id 2>/dev/null || true
sleep ${toString sleepTime}
- cd /
- rm -rf ${tmpDir}/$id
+ rm -rf ${tmpDir}/qsub-$id
}
trap cleanup INT TERM EXIT