Fixed running string as command, use it as input instead

pull/468/head
Simen Sandvaer 2022-10-16 21:46:20 +02:00
parent d22bf06e80
commit e1f453126e
2 changed files with 3 additions and 9 deletions

View File

@ -86,9 +86,10 @@ elif [[ -n "$UNITY_LICENSING_SERVER" ]]; then
/opt/unity/Editor/Data/Resources/Licensing/Client/Unity.Licensing.Client --acquire-floating > license.txt #is this accessible in a env variable? /opt/unity/Editor/Data/Resources/Licensing/Client/Unity.Licensing.Client --acquire-floating > license.txt #is this accessible in a env variable?
PARSEDFILE=$(grep -oP '\".*?\"' < license.txt | tr -d '"') PARSEDFILE=$(grep -oP '\".*?\"' < license.txt | tr -d '"')
echo "$PARSEDFILE"
export FLOATING_LICENSE export FLOATING_LICENSE
FLOATING_LICENSE=$("$PARSEDFILE" | sed -n 2p) FLOATING_LICENSE=$(sed -n 2p <<< "$PARSEDFILE")
FLOATING_LICENSE_TIMEOUT=$("$PARSEDFILE" | sed -n 4p) FLOATING_LICENSE_TIMEOUT=$(sed -n 4p <<< "$PARSEDFILE")
echo "Acquired floating license: \"$FLOATING_LICENSE\" with timeout $FLOATING_LICENSE_TIMEOUT" echo "Acquired floating license: \"$FLOATING_LICENSE\" with timeout $FLOATING_LICENSE_TIMEOUT"
# Store the exit code from the verify command # Store the exit code from the verify command

View File

@ -1,7 +0,0 @@
{
"licensingServiceBaseUrl": "test",
"enableEntitlementLicensing": true,
"enableFloatingApi": true,
"clientConnectTimeoutSec": 5,
"clientHandshakeTimeoutSec": 10
}