From 63708b52236b2a8efeffe7e3c8e2b0e4a9de643d Mon Sep 17 00:00:00 2001 From: Tomas Kral Date: Tue, 6 Mar 2018 10:36:09 +0100 Subject: [PATCH] 'v' was added to version number --- scripts/create-packages.sh | 2 +- scripts/prepare-release.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/create-packages.sh b/scripts/create-packages.sh index 31fa397c1c4..9465bab46ed 100755 --- a/scripts/create-packages.sh +++ b/scripts/create-packages.sh @@ -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})" diff --git a/scripts/prepare-release.sh b/scripts/prepare-release.sh index 0e0be8c2882..8af2f099ff6 100755 --- a/scripts/prepare-release.sh +++ b/scripts/prepare-release.sh @@ -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})"