From b2ad8a95d4ebe616d4965aa47e21dc184771f1cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Domas?= Date: Thu, 10 May 2018 14:46:34 -0500 Subject: [PATCH] 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. --- ios/travis-ci/build-ipa.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/travis-ci/build-ipa.sh b/ios/travis-ci/build-ipa.sh index 79e1b4eb2..f051b2396 100755 --- a/ios/travis-ci/build-ipa.sh +++ b/ios/travis-ci/build-ipa.sh @@ -77,8 +77,8 @@ fi if [ ! -z ${LIB_JITSI_MEET_PKG} ]; then echo "Adjusting lib-jitsi-meet package in package.json to ${LIB_JITSI_MEET_PKG}" - # escape / for the sed - LIB_JITSI_MEET_PKG=${LIB_JITSI_MEET_PKG/\//\\/} + # escape for the sed + LIB_JITSI_MEET_PKG=$(echo $LIB_JITSI_MEET_PKG | sed -e 's/\\/\\\\/g; s/\//\\\//g; s/&/\\\&/g') sed -i.bak -e "s/\"lib-jitsi-meet.*/\"lib-jitsi-meet\"\: \"${LIB_JITSI_MEET_PKG}\",/g" package.json echo "Package.json lib-jitsi-meet line:" grep lib-jitsi-meet package.json