From 6fe6c04f6ca7c4662427bd11ebeef9516a78d47d Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Sun, 5 Aug 2018 21:22:19 +0300 Subject: [PATCH] travis: script: strip new line --- scripts/ci/script.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ci/script.sh b/scripts/ci/script.sh index ebe80f524..588f099be 100644 --- a/scripts/ci/script.sh +++ b/scripts/ci/script.sh @@ -21,8 +21,8 @@ if [[ ! -z "$TRAVIS_TAG" ]]; then fi pip install dist/dvc-*.whl - if [[ "$(dvc --version)" != "dvc $TRAVIS_TAG" ]]; then - echo "ERROR: 'dvc --version'($(dvc -V)) doesn't match 'dvc $TRAVIS_TAG'" + if [[ "$(dvc --version | tr -d '\n')" != "dvc $TRAVIS_TAG" ]]; then + echo "ERROR: 'dvc --version'$(dvc -V) doesn't match 'dvc $TRAVIS_TAG'" exit 1 fi pip uninstall -y dvc