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.
This commit is contained in:
Paweł Domas 2018-05-10 14:46:34 -05:00 committed by virtuacoplenny
parent b797b0b201
commit b2ad8a95d4
1 changed files with 2 additions and 2 deletions

View File

@ -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