From a46e5bb0c1e64cc113c86286b35901e95960b432 Mon Sep 17 00:00:00 2001 From: Xinwei Xiong <3293172751NSS@gmail.com> Date: Mon, 22 Jan 2024 16:32:21 +0800 Subject: [PATCH] Update check_all.sh (#390) --- scripts/check_all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check_all.sh b/scripts/check_all.sh index d17977eb0..32626c677 100755 --- a/scripts/check_all.sh +++ b/scripts/check_all.sh @@ -62,7 +62,7 @@ extract_yaml_value() { ;; "Darwin") # Use sed for macOS - sed -n "s/^${key}: \[\s*\([^]]*\).*$/\1/p" "$config_yaml" | xargs + sed -nE "/openImAdminApiPort: \[ */{s///; s/\].*//; p;}" "./config/config.yaml" | tr -d '[]' | xargs ;; *) echo "Unsupported operating system"