diff --git a/circleci_validate.sh b/circleci_validate.sh index ee65805..9fcfcf3 100755 --- a/circleci_validate.sh +++ b/circleci_validate.sh @@ -1,6 +1,12 @@ #!/usr/bin/env bash set -e +if ! command -v circleci &> /dev/null +then + echo "Circleci CLI could not be found. Install the latest CLI version https://circleci.com/docs/2.0/local-cli/#installation" + exit +fi + if ! eMSG=$(circleci config validate -c .circleci/config.yml); then echo "CircleCI Configuration Failed Validation." echo $eMSG