Skip to content

Commit

Permalink
add cli check
Browse files Browse the repository at this point in the history
  • Loading branch information
zahorniak committed Sep 6, 2021
1 parent 87accb5 commit 74f530e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions circleci_validate.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 74f530e

Please sign in to comment.