Remove unnecessary statement

This commit is contained in:
Manuel Thalmann 2023-07-13 19:35:19 +02:00
parent 9e1f872a66
commit 6bafeffaae

View file

@ -21,7 +21,7 @@ $null = New-Module {
$tempDir = $context.GetTempDirectory();
Push-Location $tempDir;
Invoke-WebRequest "https://github.com/ppy/osu/releases/latest/download/install.exe" -OutFile $installerName;
$process = Start-Process -FilePath $installerName;
Start-Process -FilePath $installerName;
while (-not (Get-Process -ErrorAction "SilentlyContinue" $processName)) {
Start-Sleep 1;
@ -29,7 +29,6 @@ $null = New-Module {
Start-Sleep 10;
Get-Process $processName | Stop-Process -Force;
Wait-Process $process;
Remove-Item "~\Desktop\*osu*";
Pop-Location;