mirror of
https://github.com/public-apis/public-apis.git
synced 2025-05-10 23:56:46 +02:00
Update exit code check for format validation
This commit is contained in:
parent
42e2bdc755
commit
2d3bace616
1 changed files with 4 additions and 3 deletions
|
@ -3,10 +3,11 @@
|
|||
echo "running format validation..."
|
||||
./validate.rb ../README.md
|
||||
|
||||
if ["$?" == 0]; then
|
||||
echo "format validation PASSED"
|
||||
if [[ $? != 0 ]]; then
|
||||
echo "format validation failed!"
|
||||
exit $?
|
||||
else
|
||||
echo "format validation FAILED"
|
||||
echo "format validation passed!"
|
||||
fi
|
||||
|
||||
if [ "$TRAVIS_BRANCH" == "master" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue