Use extended regular expression since mac uses BSD grep

pull/735/head
Pyeongseok Oh 2025-09-11 12:55:53 +09:00
parent 212147f7b1
commit 7e34468125
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ elif [[ -n "$UNITY_LICENSING_SERVER" ]]; then
/Applications/Unity/Hub/Editor/$UNITY_VERSION/Unity.app/Contents/Frameworks/UnityLicensingClient.app/Contents/MacOS/Unity.Licensing.Client \
--acquire-floating > license.txt
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")