travis: properly check for command existance

This commit is contained in:
Ruslan Kuprieiev
2018-08-05 18:43:59 +03:00
committed by GitHub
parent 5e5705ae7e
commit 2dde6e848b
+1 -1
View File
@@ -15,7 +15,7 @@ if [[ ! -z "$TRAVIS_TAG" ]]; then
# Test version
pip uninstall -y dvc
if ! type dvc > /dev/null; then
if [ -x "$(command -v dvc)" ]; then
print "ERROR: dvc command already exists!!!"
exit 1
fi