update grep logic

This commit is contained in:
Hörmet Yiltiz 2023-12-21 17:51:29 -05:00
parent 3ac8d625ac
commit fedbaf12f6
1 changed files with 2 additions and 6 deletions

View File

@ -49,12 +49,8 @@ jobs:
echo -e '\n+++++++ msg.log ++++++++++++++'
cat msg.log
echo -e '\n+++++++++ errors: ++++++++++++\n'
grep -i 'error' msg.log
if [ $? -eq 0 ]; then
exit 1
else
exit 0
fi
grepnot(){ ! grep $1 $2; return $?;}
grepnot -i 'error' msg.log # exit with non-zero if "error" match is found
# Check Lua Formatting
stylua: