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.
This commit is contained in:
Erlend Pedersen 2020-09-12 13:37:57 +02:00
parent 8f683aa7f8
commit 1d11b29e73

View file

@ -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" %]