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

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

View File

@ -162,14 +162,12 @@ $unityProcess = Start-Process -FilePath "$Env:UNITY_PATH\Editor\Unity.exe" `
-NoNewWindow
# 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
while ($true) {
if ($unityProcess.HasExited) {
Start-Sleep -Seconds 5
Get-Process
Start-Sleep -Seconds 10
Start-Sleep -Seconds 3
Get-Process
$BUILD_EXIT_CODE = $unityProcess.ExitCode
@ -195,5 +193,5 @@ while ($true) {
break
}
Start-Sleep -Seconds 5
Start-Sleep -Seconds 3
}