[CI] Fix shell script exit codes (#3329)

The exist code of a posix compilant shell is 0..255.  Attempting to
return -1 will error in some shells and implicitly cast to 255 in
others.  Fix it by returning a legal return value.
This commit is contained in:
Marcus Shawcroft 2019-06-10 19:01:58 +01:00 коммит произвёл Tianqi Chen
Родитель 474b56834e
Коммит ce90f0d0ee
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -41,7 +41,7 @@ if grep --quiet -E "File" /tmp/$$.apache-rat.txt; then
echo "- Create file_list.txt in your text editor"
echo "- Copy paste the above content in file-list into file_list.txt"
echo "- python3 tests/lint/add_asf_header.py file_list.txt"
exit -1
exit 1
fi
echo "Check codestyle of c++ code..."
@ -59,5 +59,5 @@ echo "---------Error Log----------"
cat /tmp/$$.logclean.txt
echo "----------------------------"
if grep --quiet -E "warning|error" < /tmp/$$.logclean.txt; then
exit -1
exit 1
fi