Added request

- Added request to cutt.ly for patch install statistics
This commit is contained in:
amd64fox
2022-06-29 03:37:35 +03:00
parent 77c558b464
commit d8dcb80612
2 changed files with 28 additions and 2 deletions
+14 -1
View File
@@ -71,6 +71,19 @@ Write-Host "Author: " -NoNewline
Write-Host "@Amd64fox" -ForegroundColor DarkYellow Write-Host "@Amd64fox" -ForegroundColor DarkYellow
Write-Host "*****************"`n 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" $spotifyDirectory = "$env:APPDATA\Spotify"
$spotifyDirectory2 = "$env:LOCALAPPDATA\Spotify" $spotifyDirectory2 = "$env:LOCALAPPDATA\Spotify"
@@ -574,7 +587,7 @@ if (!($cache_on) -and !($cache_off)) {
do { do {
$ch = Read-Host -Prompt "Cache files that have not been used for more than XX days will be deleted. $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" Enter the number of days from 1 to 100"
Write-Host "" Write-Host ""
if (!($ch -match "^[1-9][0-9]?$|^100$")) { incorrectValue } if (!($ch -match "^[1-9][0-9]?$|^100$")) { incorrectValue }
} }
while ($ch -notmatch '^[1-9][0-9]?$|^100$') while ($ch -notmatch '^[1-9][0-9]?$|^100$')
+14 -1
View File
@@ -71,6 +71,19 @@ Write-Host "Автор: " -NoNewline
Write-Host "@Amd64fox" -ForegroundColor DarkYellow Write-Host "@Amd64fox" -ForegroundColor DarkYellow
Write-Host "*****************"`n 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" $spotifyDirectory = "$env:APPDATA\Spotify"
$spotifyDirectory2 = "$env:LOCALAPPDATA\Spotify" $spotifyDirectory2 = "$env:LOCALAPPDATA\Spotify"
@@ -574,7 +587,7 @@ if (!($cache_on) -and !($cache_off)) {
do { do {
$ch = Read-Host -Prompt "Файлы кэша, которые не использовались более XX дней, будут удалены. $ch = Read-Host -Prompt "Файлы кэша, которые не использовались более XX дней, будут удалены.
Пожалуйста, введите количество дней от 1 до 100" Пожалуйста, введите количество дней от 1 до 100"
Write-Host "" Write-Host ""
if (!($ch -match "^[1-9][0-9]?$|^100$")) { incorrectValue } if (!($ch -match "^[1-9][0-9]?$|^100$")) { incorrectValue }
} }
while ($ch -notmatch '^[1-9][0-9]?$|^100$') while ($ch -notmatch '^[1-9][0-9]?$|^100$')