소스 검색

fix(ios,build-ipa.sh): lib-jitsi-meet package sed escape (#2953)

It needs to be global and the old replace seems to escape only the first
occurrence.
master
Paweł Domas 7 년 전
부모
커밋
b2ad8a95d4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      ios/travis-ci/build-ipa.sh

+ 2
- 2
ios/travis-ci/build-ipa.sh 파일 보기

@@ -77,8 +77,8 @@ fi
77 77
 if [ ! -z ${LIB_JITSI_MEET_PKG} ];
78 78
 then
79 79
     echo "Adjusting lib-jitsi-meet package in package.json to ${LIB_JITSI_MEET_PKG}"
80
-    # escape / for the sed
81
-    LIB_JITSI_MEET_PKG=${LIB_JITSI_MEET_PKG/\//\\/}
80
+    # escape for the sed
81
+    LIB_JITSI_MEET_PKG=$(echo $LIB_JITSI_MEET_PKG | sed -e 's/\\/\\\\/g; s/\//\\\//g; s/&/\\\&/g')
82 82
     sed -i.bak -e "s/\"lib-jitsi-meet.*/\"lib-jitsi-meet\"\: \"${LIB_JITSI_MEET_PKG}\",/g" package.json
83 83
     echo "Package.json lib-jitsi-meet line:"
84 84
     grep lib-jitsi-meet package.json

Loading…
취소
저장