Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/recyclarr/blame/commit/147b3fc859ffadd8d384484717ed8ba5a74d8466/scripts/Update-Gitignore.ps1 You should set ROOT_URL correctly, otherwise the web may not work correctly.
recyclarr/scripts/Update-Gitignore.ps1

22 lines
622 B

$ErrorActionPreference = "Stop"
$gitIgnorePath = "$PSScriptRoot/.gitignore"
Function gig {
param(
[Parameter(Mandatory=$true)]
[string[]]$list
)
$params = ($list | ForEach-Object { [uri]::EscapeDataString($_) }) -join ","
Invoke-WebRequest -Uri "https://www.toptal.com/developers/gitignore/api/$params" | `
Select-Object -ExpandProperty content | `
Set-Content -Path $gitIgnorePath -Encoding utf8 -NoNewline
}
gig windows,jetbrains,csharp,macos,sonarqube
# Replace specific ignore patterns
$(Get-Content $gitIgnorePath) `
-replace '^\.idea', '**/.idea' `
| Set-Content -Path $gitIgnorePath