Skip to content

Commit

Permalink
Merge pull request #1 from zahorniak/development
Browse files Browse the repository at this point in the history
check if circleci cli installed
  • Loading branch information
zahorniak authored Sep 6, 2021
2 parents 87accb5 + 66d0910 commit 1d01abe
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 1
fi

if ! eMSG=$(circleci config validate -c .circleci/config.yml); then
echo "CircleCI Configuration Failed Validation."
echo $eMSG
Expand Down

0 comments on commit 1d01abe

Please sign in to comment.