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