From 74f530e8b2530bce726a96db67b1add32dda7327 Mon Sep 17 00:00:00 2001 From: Volodymyr Zahorniak Date: Mon, 6 Sep 2021 11:56:58 +0300 Subject: [PATCH] add cli check --- circleci_validate.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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