Remove unnecessary statement
This commit is contained in:
parent
9e1f872a66
commit
6bafeffaae
1 changed files with 1 additions and 2 deletions
|
@ -21,7 +21,7 @@ $null = New-Module {
|
||||||
$tempDir = $context.GetTempDirectory();
|
$tempDir = $context.GetTempDirectory();
|
||||||
Push-Location $tempDir;
|
Push-Location $tempDir;
|
||||||
Invoke-WebRequest "https://github.com/ppy/osu/releases/latest/download/install.exe" -OutFile $installerName;
|
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)) {
|
while (-not (Get-Process -ErrorAction "SilentlyContinue" $processName)) {
|
||||||
Start-Sleep 1;
|
Start-Sleep 1;
|
||||||
|
@ -29,7 +29,6 @@ $null = New-Module {
|
||||||
|
|
||||||
Start-Sleep 10;
|
Start-Sleep 10;
|
||||||
Get-Process $processName | Stop-Process -Force;
|
Get-Process $processName | Stop-Process -Force;
|
||||||
Wait-Process $process;
|
|
||||||
|
|
||||||
Remove-Item "~\Desktop\*osu*";
|
Remove-Item "~\Desktop\*osu*";
|
||||||
Pop-Location;
|
Pop-Location;
|
||||||
|
|
Loading…
Reference in a new issue