Sfoglia il codice sorgente

Update exit code check for format validation

pull/884/head
Dave Machado 7 anni fa
committed by GitHub
parent
commit
2d3bace616
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. +4
    -3
      build/main.sh

+ 4
- 3
build/main.sh Vedi File

@@ -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


Caricamento…
Annulla
Salva