Skip to content

Commit

Permalink
fix the platform condition cmp
Browse files Browse the repository at this point in the history
  • Loading branch information
yinfangchen committed Oct 18, 2023
1 parent 313886e commit 05a3e72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/deploy/gen-mysql-secret.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 05a3e72

Please sign in to comment.