Improve env.sh to extract GITBUCKET_VERSION from build.scala

This commit is contained in:
Naoki Takezoe
2015-07-19 01:42:42 +09:00
parent 0db7eba3f2
commit e629ca391e

3
env.sh
View File

@@ -1,2 +1,3 @@
#!/bin/sh
export GITBUCKET_VERSION=3.5.0-SNAPSHOT
export GITBUCKET_VERSION=`cat project/build.scala | grep 'val Version' | cut -d \" -f 2`
echo "GITBUCKET_VERSION: $GITBUCKET_VERSION"