Skip to content
Snippets Groups Projects
Commit dfcf2c86cb60 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:pencil: use fixed string match in grep

parent 450f7a6426c1
No related branches found
No related tags found
No related merge requests found
......@@ -109,9 +109,9 @@
echo "[${RED} KO ${RESET}] Cannot install modules (exit ${start_status})"
exit $start_status
fi
criticals=$(grep ' CRITICAL' $logfile -c)
errors=$(grep ' ERROR' $logfile -c)
warnings=$(grep ' WARNING' $logfile -c)
criticals=$(grep ' CRITICAL' -F $logfile -c)
errors=$(grep ' ERROR' -F $logfile -c)
warnings=$(grep ' WARNING' -F $logfile -c)
if [[ $criticals -gt 0 ]];
then
echo "[${RED} KO ${RESET}] Cannot install modules ($criticals CRITICAL messages found)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment