From 1d11b29e730f1f5135db1a7f322fa368ad9f02cc Mon Sep 17 00:00:00 2001 From: Erlend Pedersen Date: Sat, 12 Sep 2020 13:37:57 +0200 Subject: [PATCH] reproduce bash script must supply revCount as int The reproduce script would fail for me, because it passed revCount as a string to nix-build, which would then fail to subtract from it. --- src/root/reproduce.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/root/reproduce.tt b/src/root/reproduce.tt index 73bbaf11..20ce7596 100644 --- a/src/root/reproduce.tt +++ b/src/root/reproduce.tt @@ -117,7 +117,7 @@ else revCount="$(cat "$tmpDir/[% input.name %]/rev-count")" fi -args+=(--arg '[% input.name %]' "{ outPath = $inputDir; rev = \"[% input.revision %]\"; shortRev = \"[% input.revision.substr(0, 7) %]\"; revCount = \"$revCount\"; }") +args+=(--arg '[% input.name %]' "{ outPath = $inputDir; rev = \"[% input.revision %]\"; shortRev = \"[% input.revision.substr(0, 7) %]\"; revCount = $revCount; }") [%+ ELSIF input.type == "hg" %] @@ -139,7 +139,7 @@ else revCount="$(cat "$tmpDir/[% input.name %]/rev-count")" fi -args+=(--arg '[% input.name %]' "{ outPath = $inputDir; rev = \"[% input.revision %]\"; revCount = \"$revCount\"; }") +args+=(--arg '[% input.name %]' "{ outPath = $inputDir; rev = \"[% input.revision %]\"; revCount = $revCount; }") [%+ ELSIF input.type == "svn" %]