We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b8a780 commit 087d8aeCopy full SHA for 087d8ae
travis-ci/autoversion.sh
@@ -17,8 +17,12 @@ function update_ai {
17
for nuspec in $f/../*.nuspec; do
18
if [[ -f "$nuspec" ]]; then
19
echo "Processing nuspec file: $nuspec"
20
- padded=$(printf "%04d" $REVISION)
21
- sed -i.bak "s/\\\$version\\\$/$VERSION_STR-cibuild$padded/g" $nuspec
+ if [[ $VERSION =~ "^v?[1-9]" && $REVISION == "0" ]]; then
+ sed -i.bak "s/\\\$version\\\$/$VERSION_STR/g" $nuspec
22
+ else
23
+ padded=$(printf "%04d" $REVISION)
24
+ sed -i.bak "s/\\\$version\\\$/$VERSION_STR-cibuild$padded/g" $nuspec
25
+ fi
26
fi
27
done
28
}
0 commit comments