Преглед изворни кода

fix(emqx-edge): fix sed error when emqx-edge start

zhanghongtong пре 4 година
родитељ
комит
54c776ebdf
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      bin/emqx

+ 1 - 1
bin/emqx

@@ -263,7 +263,7 @@ generate_config() {
             ## if they are different
             if [ -n "$TMP_ARG_VALUE" ]; then
                 ## if the old value is present, replace it with generated value
-                sh -c "$SED_REPLACE 's/^$ARG_KEY.*$/$ARG_LINE/' $TMP_ARG_FILE"
+                sh -c "$SED_REPLACE 's|^$ARG_KEY.*$|$ARG_LINE|' $TMP_ARG_FILE"
             else
                 ## otherwise append generated value to the end
                 echo "$ARG_LINE" >> "$TMP_ARG_FILE"