From 05a3e72c59ab126196491a963a3ffdd9ee8f2765 Mon Sep 17 00:00:00 2001 From: DarknessChen Date: Wed, 18 Oct 2023 16:38:27 -0500 Subject: [PATCH] fix the platform condition cmp --- hack/deploy/gen-mysql-secret.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/deploy/gen-mysql-secret.sh b/hack/deploy/gen-mysql-secret.sh index 03136d7ba..cc5e4a5ce 100755 --- a/hack/deploy/gen-mysql-secret.sh +++ b/hack/deploy/gen-mysql-secret.sh @@ -68,7 +68,7 @@ function update_tt_dp_cm { cp $dp_sample_yaml $dp_yaml - if [ "$(uname)"="Darwin" ]; then + if [[ "$(uname)" == "Darwin" ]]; then sed -i "" "s/nacos/${nacosCM}/g" $dp_yaml sed -i "" "s/rabbitmq/${rabbitmqCM}/g" $dp_yaml else @@ -82,7 +82,7 @@ function update_tt_sw_dp_cm { rabbitmqCM="$2" cp $sw_dp_sample_yaml $sw_dp_yaml - if [ "$(uname)"="Darwin" ]; then + if [[ "$(uname)" == "Darwin" ]]; then sed -i "" "s/nacos/${nacosCM}/g" $sw_dp_yaml sed -i "" "s/rabbitmq/${rabbitmqCM}/g" $sw_dp_yaml else