Skip to content

Commit d3d1d4e

Browse files
committed
Bash is awesome...
1 parent 5fe0a6c commit d3d1d4e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

admin/build.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77

88
if [[ "$TRAVIS_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z0-9-]+)? ]]; then
99
echo "Going to release from tag $TRAVIS_TAG!"
10-
export publishVersion="set every version := \"$(echo $TRAVIS_TAG | sed -e s/^v//)\""
10+
myVer=$(echo $TRAVIS_TAG | sed -e s/^v//)
11+
export publishVersion='set every scalaVersion := "'$myVer'"'
1112
export extraTarget="publish-signed"
1213
cat admin/gpg.sbt >> project/plugins.sbt
1314
admin/decrypt.sh sensitive.sbt
1415
(cd admin/ && ./decrypt.sh secring.asc)
1516
fi
1617

17-
sbt ++$TRAVIS_SCALA_VERSION $publishVersion clean update compile test $extraTarget
18+
sbt ++$TRAVIS_SCALA_VERSION "$publishVersion" clean update compile test $extraTarget

0 commit comments

Comments
 (0)