diff --git a/circleci_validate.sh b/circleci_validate.sh index ee65805..1598fe7 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 1 +fi + if ! eMSG=$(circleci config validate -c .circleci/config.yml); then echo "CircleCI Configuration Failed Validation." echo $eMSG