From 2dde6e848bf2d9c2516b4d034b56e5a0a1a3ba5c Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Sun, 5 Aug 2018 18:43:59 +0300 Subject: [PATCH] travis: properly check for command existance --- scripts/ci/script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/script.sh b/scripts/ci/script.sh index 4bcba91f3..9870acf67 100644 --- a/scripts/ci/script.sh +++ b/scripts/ci/script.sh @@ -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