Del spotify.bak

- Deleting a possibly outdated copy of spotify.bak
This commit is contained in:
amd64fox
2022-07-21 21:46:07 +03:00
parent a32f1a89fe
commit 937acf8eb5

View File

@@ -1483,8 +1483,10 @@ if ($block_update) {
Write-Host ($lang).UpdateBlocked`n
}
elseif ($old -match "(?<=wg:\/\/desktop-update\/.)2(\/update)") {
Remove-Item $exe_bak -Recurse -Force
Start-Sleep -Milliseconds 150
if (Test-Path -LiteralPath $exe_bak) {
Remove-Item $exe_bak -Recurse -Force
Start-Sleep -Milliseconds 150
}
copy-Item $exe $exe_bak
$new = $old -replace "(?<=wg:\/\/desktop-update\/.)2(\/update)", '7/update'
[IO.File]::WriteAllText($exe, $new, $ANSI)