Skip to content

Commit 1d01abe

Browse files
authored
Merge pull request #1 from zahorniak/development
check if circleci cli installed
2 parents 87accb5 + 66d0910 commit 1d01abe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

circleci_validate.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#!/usr/bin/env bash
22
set -e
33

4+
if ! command -v circleci &> /dev/null
5+
then
6+
echo "Circleci CLI could not be found. Install the latest CLI version https://circleci.com/docs/2.0/local-cli/#installation"
7+
exit 1
8+
fi
9+
410
if ! eMSG=$(circleci config validate -c .circleci/config.yml); then
511
echo "CircleCI Configuration Failed Validation."
612
echo $eMSG

0 commit comments

Comments
 (0)