From e13946d8f97544f05f6b978837d214198a12c127 Mon Sep 17 00:00:00 2001 From: simensan Date: Mon, 18 Sep 2023 10:40:36 +0200 Subject: [PATCH] Update grep command for mac os --- dist/platforms/mac/steps/activate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/platforms/mac/steps/activate.sh b/dist/platforms/mac/steps/activate.sh index 5e271e8a..d660c083 100755 --- a/dist/platforms/mac/steps/activate.sh +++ b/dist/platforms/mac/steps/activate.sh @@ -13,7 +13,7 @@ if [[ -n "$UNITY_LICENSING_SERVER" ]]; then echo "Adding licensing server config" /Applications/Unity/Hub/Editor/$UNITY_VERSION/Unity.app/Contents/Frameworks/UnityLicensingClient.app/Contents/MacOS/Unity.Licensing.Client --acquire-floating > license.txt #is this accessible in a env variable? - PARSEDFILE=$(grep -oP '\".*?\"' < license.txt | tr -d '"') + PARSEDFILE=$(grep -oE '\".*?\"' < license.txt | tr -d '"') export FLOATING_LICENSE FLOATING_LICENSE=$(sed -n 2p <<< "$PARSEDFILE") FLOATING_LICENSE_TIMEOUT=$(sed -n 4p <<< "$PARSEDFILE")