Merge pull request #807 from plutotulp/bugfix-revcount-as-integer

reproduce bash script must supply revCount as int
This commit is contained in:
Eelco Dolstra 2020-09-14 15:34:03 +02:00 committed by GitHub
commit a6c4e4b067
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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