mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-17 14:46:13 +03:00
Added "::error" in error message
This commit is contained in:
parent
1680f5be90
commit
4edeca70e4
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -54,7 +54,7 @@ jobs:
|
|||||||
# '|| :' handles the case grep doesn't match, otherwise the script exits with 1 (error)
|
# '|| :' handles the case grep doesn't match, otherwise the script exits with 1 (error)
|
||||||
errors=$(grep -E ':(?error|warn)[]]' /var/log/apache2/error.log) || :
|
errors=$(grep -E ':(?error|warn)[]]' /var/log/apache2/error.log) || :
|
||||||
if [[ -z "${errors}" ]]; then exit 0; fi
|
if [[ -z "${errors}" ]]; then exit 0; fi
|
||||||
echo "Found errors/warnings in error.log"
|
echo "::error Found errors/warnings in error.log"
|
||||||
echo "${errors}"
|
echo "${errors}"
|
||||||
exit 1
|
exit 1
|
||||||
- name: Show httpd error log
|
- name: Show httpd error log
|
||||||
|
Loading…
x
Reference in New Issue
Block a user