From a1f0eb2e3eb49551ddc6e1a757f6e8c6d74a45ee Mon Sep 17 00:00:00 2001 From: skiffer-git <72860476+skiffer-git@users.noreply.github.com> Date: Fri, 8 Mar 2024 08:56:22 +0800 Subject: [PATCH] Exit with code 1 when the check script fails (#2022) * Optimize script logs * Optimizing Docker Log Output Detection * Optimizing Docker Log Output Detection * Optimizing Docker Log Output Detection * Optimizing Docker Log Output Detection * Optimizing Docker Log Output Detection * Optimizing Docker Log Output Detection * Optimizing Docker Log Output Detection * Optimizing Docker Log Output Detection * Optimizing Docker Log Output Detection * Optimizing Docker Log Output Detection * Optimizing Docker Log Output Detection * Optimizing Docker Log Output Detection * Exit with code 1 when the check script fails --- scripts/check-all.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/check-all.sh b/scripts/check-all.sh index 8e89af79d..d41023384 100755 --- a/scripts/check-all.sh +++ b/scripts/check-all.sh @@ -104,6 +104,7 @@ if [[ $? -ne 0 ]]; then echo "+++ cat openim log file >>> ${LOG_FILE}" openim::log::error "check process failed.\n " echo "$result" + exit 1 else openim::log::success "All openim services are running normally! " fi