aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2018-12-10 09:25:52 +1100
committerJustin Bedo <cu@cua0.org>2018-12-10 16:26:37 +1100
commit060cefc054e2f6dda2e5f806c3fa146690363485 (patch)
tree30bd7aa2612bca31bbb3d73ed97420990c1862ed /lib
parent86b1b192501eecc8a4e566795327772c32b1633d (diff)
qsub: fix $TMPDIR location
Diffstat (limited to 'lib')
-rw-r--r--lib/qsub.nix6
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
'';