Skip to content

Commit

Permalink
Merge pull request #184 from kadel/fix-release-automation
Browse files Browse the repository at this point in the history
'v' was added to version number
  • Loading branch information
concaf authored Mar 6, 2018
2 parents d0b6591 + 63708b5 commit 01bb35c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/create-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if [[ -n $TRAVIS_TAG ]]; then
echo "Checking if ocdev version was set to the same version as current tag"
# use sed to get only semver part
bin_version=$(${BIN_DIR}/linux-amd64/ocdev version | sed 's/ .*//g')
if [ "$TRAVIS_TAG" == "v${bin_version}" ]; then
if [ "$TRAVIS_TAG" == "${bin_version}" ]; then
echo "OK: ocdev version output is matching current tag"
else
echo "ERR: TRAVIS_TAG ($TRAVIS_TAG) is not matching 'ocdev version' (v${bin_version})"
Expand Down
2 changes: 1 addition & 1 deletion scripts/prepare-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if [[ -n $TRAVIS_TAG ]]; then
echo "Checking if ocdev version was set to the same version as current tag"
# use sed to get only semver part
bin_version=$(${BIN_DIR}/linux-amd64/ocdev version | sed 's/ .*//g')
if [ "$TRAVIS_TAG" == "v${bin_version}" ]; then
if [ "$TRAVIS_TAG" == "${bin_version}" ]; then
echo "OK: ocdev version output is matching current tag"
else
echo "ERR: TRAVIS_TAG ($TRAVIS_TAG) is not matching 'ocdev version' (v${bin_version})"
Expand Down

0 comments on commit 01bb35c

Please sign in to comment.