control: Exit on error

This prevents srun from silently returning with an error, without
actually queueing the job of a run.
This commit is contained in:
Rodrigo Arias Mallo 2020-12-07 16:33:40 +01:00
parent 756c5dff92
commit 7d4db6b6de

View File

@ -17,7 +17,7 @@ stdenv.mkDerivation {
dontPatchShebangs = true;
installPhase = ''
cat > $out <<EOF
#!/bin/sh
#!/bin/sh -e
for n in \$(seq 1 ${toString loops}); do
export GARLIC_RUN="\$n"
echo "running \$n of ${toString loops}" > status