Console
Console copied to clipboard
Update Wait-RemoteSitecoreJob.ps1
This PR is to fix two issues with Wait-RemoteSitecoreJob.ps1
-
As mentioned in https://github.com/SitecorePowerShell/Console/issues/1266#issue-1248688022 Wait-RemoteSitecoreJob 'fails' when the job finishes, this PR removes the "$finishscript" call that is not needed.
-
The Wait-RemoteSitecoreJob did not support multiple JobId's being passed. Updated to support the passing of a String Arraylist of job Id's (one or many), the foreach loop then returns the status of each job with a 'sleep' time between each. The 'while' loop then exits when one or many jobs have returned 'done'.