Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
public-apis
Commits
c1b906c3
Commit
c1b906c3
authored
Jul 21, 2017
by
Dave Machado
Browse files
set variable for file to check
parent
fe43641b
Changes
1
Hide whitespace changes
Inline
Side-by-side
build/main.sh
View file @
c1b906c3
#!/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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment