update grep logic
This commit is contained in:
parent
3ac8d625ac
commit
fedbaf12f6
|
@ -49,12 +49,8 @@ jobs:
|
||||||
echo -e '\n+++++++ msg.log ++++++++++++++'
|
echo -e '\n+++++++ msg.log ++++++++++++++'
|
||||||
cat msg.log
|
cat msg.log
|
||||||
echo -e '\n+++++++++ errors: ++++++++++++\n'
|
echo -e '\n+++++++++ errors: ++++++++++++\n'
|
||||||
grep -i 'error' msg.log
|
grepnot(){ ! grep $1 $2; return $?;}
|
||||||
if [ $? -eq 0 ]; then
|
grepnot -i 'error' msg.log # exit with non-zero if "error" match is found
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check Lua Formatting
|
# Check Lua Formatting
|
||||||
stylua:
|
stylua:
|
||||||
|
|
Loading…
Reference in New Issue