diff options
author | Justin Bedo <cu@cua0.org> | 2018-12-10 09:25:52 +1100 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2018-12-10 16:26:37 +1100 |
commit | 060cefc054e2f6dda2e5f806c3fa146690363485 (patch) | |
tree | 30bd7aa2612bca31bbb3d73ed97420990c1862ed | |
parent | 86b1b192501eecc8a4e566795327772c32b1633d (diff) |
qsub: fix $TMPDIR location
-rw-r--r-- | lib/qsub.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/qsub.nix b/lib/qsub.nix index 4ef6dbc..017e52c 100644 --- a/lib/qsub.nix +++ b/lib/qsub.nix @@ -8,14 +8,14 @@ while [ ! -e ${tmpDir}/$PBS_JOBID ] ; do sleep ${toString sleepTime} done + set -a + . ${tmpDir}/$PBS_JOBID/nix-set + set +a TMPDIR=${tmpDir}/$PBS_JOBID TEMP=$TMPDIR TMP=$TMPDIR NIX_BUILD_TOP=$TMPDIR cd $TMPDIR - set -a - . nix-set - set +a ${builder} ${lib.escapeShellArgs args} > qsub-stdout 2> qsub-stderr echo $? > qsub-exit ''; |