Fix missing space, add link for context

This commit is contained in:
Andrew Kahr 2023-11-14 18:02:30 -08:00
parent 66b7f8c362
commit 80d273634a
2 changed files with 5 additions and 7 deletions

View File

@ -6,8 +6,8 @@
UNITY_LICENSE_PATH="/Library/Application Support/Unity" UNITY_LICENSE_PATH="/Library/Application Support/Unity"
if [ -d "$UNITY_LICENSE_PATH"]; then if [ -d "$UNITY_LICENSE_PATH" ]; then
sudo mkdir "$UNITY_LICENSE_PATH" sudo mkdir -p "$UNITY_LICENSE_PATH"
sudo chmod -R 777 "$UNITY_LICENSE_PATH" sudo chmod -R 777 "$UNITY_LICENSE_PATH"
fi; fi;

View File

@ -162,14 +162,12 @@ $unityProcess = Start-Process -FilePath "$Env:UNITY_PATH\Editor\Unity.exe" `
-NoNewWindow -NoNewWindow
# Cache the handle so exit code works properly # Cache the handle so exit code works properly
# https://stackoverflow.com/questions/10262231/obtaining-exitcode-using-start-process-and-waitforexit-instead-of-wait
$unityHandle = $unityProcess.Handle $unityHandle = $unityProcess.Handle
while ($true) { while ($true) {
if ($unityProcess.HasExited) { if ($unityProcess.HasExited) {
Start-Sleep -Seconds 5 Start-Sleep -Seconds 3
Get-Process
Start-Sleep -Seconds 10
Get-Process Get-Process
$BUILD_EXIT_CODE = $unityProcess.ExitCode $BUILD_EXIT_CODE = $unityProcess.ExitCode
@ -195,5 +193,5 @@ while ($true) {
break break
} }
Start-Sleep -Seconds 5 Start-Sleep -Seconds 3
} }