control: Export the run iteration

This commit is contained in:
Rodrigo Arias 2020-11-20 15:32:41 +01:00
parent 734d494d96
commit d192a59fdc

View File

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