travis: script: strip new line

This commit is contained in:
Ruslan Kuprieiev
2018-08-05 21:22:19 +03:00
committed by GitHub
parent 23b167f5d7
commit 6fe6c04f6c
+2 -2
View File
@@ -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