diff --git a/Install.ps1 b/Install.ps1 index 037604b..c40f49b 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -71,6 +71,19 @@ Write-Host "Author: " -NoNewline Write-Host "@Amd64fox" -ForegroundColor DarkYellow Write-Host "*****************"`n +$ErrorActionPreference = 'SilentlyContinue' +$cutt_url = "https://cutt.ly/AKH7MQ6" +try { + Invoke-WebRequest -Uri $cutt_url | Out-Null +} +catch [System.Management.Automation.MethodInvocationException] { + + try { + Invoke-WebRequest -Uri $cutt_url | Out-Null + } + catch [System.Management.Automation.MethodInvocationException] { + } +} $spotifyDirectory = "$env:APPDATA\Spotify" $spotifyDirectory2 = "$env:LOCALAPPDATA\Spotify" @@ -574,7 +587,7 @@ if (!($cache_on) -and !($cache_off)) { do { $ch = Read-Host -Prompt "Cache files that have not been used for more than XX days will be deleted. Enter the number of days from 1 to 100" - Write-Host "" + Write-Host "" if (!($ch -match "^[1-9][0-9]?$|^100$")) { incorrectValue } } while ($ch -notmatch '^[1-9][0-9]?$|^100$') diff --git a/scripts/Install_Rus.ps1 b/scripts/Install_Rus.ps1 index 1a342e3..8f53562 100644 --- a/scripts/Install_Rus.ps1 +++ b/scripts/Install_Rus.ps1 @@ -71,6 +71,19 @@ Write-Host "Автор: " -NoNewline Write-Host "@Amd64fox" -ForegroundColor DarkYellow Write-Host "*****************"`n +$ErrorActionPreference = 'SilentlyContinue' +$cutt_url = "https://cutt.ly/AKH7MQ6" +try { + Invoke-WebRequest -Uri $cutt_url | Out-Null +} +catch [System.Management.Automation.MethodInvocationException] { + + try { + Invoke-WebRequest -Uri $cutt_url | Out-Null + } + catch [System.Management.Automation.MethodInvocationException] { + } +} $spotifyDirectory = "$env:APPDATA\Spotify" $spotifyDirectory2 = "$env:LOCALAPPDATA\Spotify" @@ -574,7 +587,7 @@ if (!($cache_on) -and !($cache_off)) { do { $ch = Read-Host -Prompt "Файлы кэша, которые не использовались более XX дней, будут удалены. Пожалуйста, введите количество дней от 1 до 100" - Write-Host "" + Write-Host "" if (!($ch -match "^[1-9][0-9]?$|^100$")) { incorrectValue } } while ($ch -notmatch '^[1-9][0-9]?$|^100$')