From 6bafeffaae8def13310afb0f1b1b1d9ac1f8476a Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 13 Jul 2023 19:35:19 +0200 Subject: [PATCH] Remove unnecessary statement --- scripts/Windows/Software/osu!lazer/Manage.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/Windows/Software/osu!lazer/Manage.ps1 b/scripts/Windows/Software/osu!lazer/Manage.ps1 index 9d0fd7c8..e4bd68dd 100644 --- a/scripts/Windows/Software/osu!lazer/Manage.ps1 +++ b/scripts/Windows/Software/osu!lazer/Manage.ps1 @@ -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;