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 ++++++++++++++' 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: