mirror of
https://github.com/public-apis/public-apis.git
synced 2025-06-28 07:27:10 +02:00
set variable for file to check
This commit is contained in:
parent
fe43641b02
commit
c1b906c368
1 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
#!/bin/bash
|
||||
CHECK_FILE=../README.md
|
||||
echo "running format validation..."
|
||||
./validate_format.rb ../README.md
|
||||
./validate_format.rb $CHECK_FILE
|
||||
if [[ $? != 0 ]]; then
|
||||
echo "format validation failed!"
|
||||
exit 1
|
||||
|
@ -10,7 +11,7 @@ fi
|
|||
|
||||
if [ "$TRAVIS_BRANCH" == "master" ]; then
|
||||
echo "running link validation..."
|
||||
./validate_links.rb ../README.md
|
||||
./validate_links.rb $CHECK_FILE
|
||||
if [[ $? != 0 ]]; then
|
||||
echo "link validation failed!"
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue