Browse Source

set variable for file to check

pull/388/head
Dave Machado 6 years ago
parent
commit
c1b906c368
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      build/main.sh

+ 3
- 2
build/main.sh View File

@@ -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…
Cancel
Save