use awk instead of sed due to http characters breaking syntax

pull/468/head
Simen Sandvaer 2022-10-14 14:24:55 +02:00
parent 6861abb19e
commit ef199a9766
1 changed files with 4 additions and 1 deletions

View File

@ -82,7 +82,10 @@ elif [[ -n "$UNITY_LICENSING_SERVER" ]]; then
pwd pwd
pushd /resources pushd /resources
pwd pwd
cat services-config.json.template | tr -d '\r' | sed -e "s/%URL%/$UNITY_LICENSING_SERVER/" > services-config.json cat services-config.json.template
echo "s/%URL%/$UNITY_LICENSING_SERVER/"
cat services-config.json.template | tr -d '\r' | awk "{sub(/%URL%/,\"$UNITY_LICENSING_SERVER\")}1" > services-config.json
cat services-config.json
mv services-config.json /usr/share/unity3d/config/ mv services-config.json /usr/share/unity3d/config/
cat /usr/share/unity3d/config/services-config.json cat /usr/share/unity3d/config/services-config.json
# Activate license # Activate license