From 435d04cd6c3fb0a3ca52fcbcd34f84a043ddbeac Mon Sep 17 00:00:00 2001 From: Alex Berry Date: Wed, 4 Mar 2020 19:47:34 +0000 Subject: [PATCH] Typos --- compile.ps1 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/compile.ps1 b/compile.ps1 index c15ff91..e3aa240 100644 --- a/compile.ps1 +++ b/compile.ps1 @@ -1,4 +1,4 @@ -# Default params, if $Cores must be set to 0 to automatically detect core count. +# Default params, $Cores must be set to 0 to automatically detect core count. Param( [Int]$Cores = 0 ) @@ -25,10 +25,10 @@ $Block = { & cd $workdir; .\pawncc.exe $file } -#Remove all jobs, in case there are old ones from a failed build +# Remove all jobs, in case there are old ones from a failed build Get-Job | Remove-Job -#Start the jobs. Max jobs running simultaneously defined by $MaxThreads set above. +# Start the jobs. Max jobs running simultaneously defined by $MaxThreads set above. foreach($file in $files){ While ($(Get-Job -state running).count -ge $MaxThreads){ Start-Sleep -Milliseconds 3 @@ -36,15 +36,15 @@ foreach($file in $files){ Start-Job -Scriptblock $Block -ArgumentList $file, $workdir } -#Once last job has been started, wait for all jobs to finish. +# Once last job has been started, wait for all jobs to finish. While ($(Get-Job -State Running).count -gt 0){ start-sleep 1 } -#Get information from each job. +# Get information from each job. foreach($job in Get-Job){ $info= Receive-Job -Id ($job.Id) } -#Remove all jobs created. +# Remove all jobs created. Get-Job | Remove-Job