forked from lix-project/hydra
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:
parent
8f683aa7f8
commit
1d11b29e73
|
@ -117,7 +117,7 @@ else
|
||||||
revCount="$(cat "$tmpDir/[% input.name %]/rev-count")"
|
revCount="$(cat "$tmpDir/[% input.name %]/rev-count")"
|
||||||
fi
|
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" %]
|
[%+ ELSIF input.type == "hg" %]
|
||||||
|
|
||||||
|
@ -139,7 +139,7 @@ else
|
||||||
revCount="$(cat "$tmpDir/[% input.name %]/rev-count")"
|
revCount="$(cat "$tmpDir/[% input.name %]/rev-count")"
|
||||||
fi
|
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" %]
|
[%+ ELSIF input.type == "svn" %]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue