ci: fix script syntax

This commit is contained in:
Dmytro authored and GitHub committed 2021-12-13 15:39:33 +02:00
1 parent 4df1f2f3d5
commit 027521c6d2
1 file changed
+2 -2
+2 -2
View File
@@ -4,13 +4,13 @@ if [[ -d "run/crash-reports" ]]; then
exit 1
fi
if [[ grep --quiet "Fatal errors were detected" server.log ]]; then
if grep --quiet "Fatal errors were detected" server.log; then
echo "Fatal errors detected:"
cat server.log
exit 1
fi
if [[ grep --quiet "The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED" server.log ]]; then
if grep --quiet "The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED" server.log; then
echo "Server force stopped:"
cat server.log
exit 1