diff --git a/scripts/fetch-configlet b/scripts/fetch-configlet index 01d4d3c3..29a174da 100755 --- a/scripts/fetch-configlet +++ b/scripts/fetch-configlet @@ -1,5 +1,10 @@ #!/usr/bin/env bash +# This file is a copy of the +# https://github.com/exercism/configlet/blob/main/scripts/fetch-configlet file. +# Please submit bugfixes/improvements to the above file to ensure that all tracks +# benefit from the changes. + set -eo pipefail readonly LATEST='https://api.github.com/repos/exercism/configlet/releases/latest' diff --git a/scripts/fetch-configlet.ps1 b/scripts/fetch-configlet.ps1 index 291e57eb..c7dd50e4 100644 --- a/scripts/fetch-configlet.ps1 +++ b/scripts/fetch-configlet.ps1 @@ -1,10 +1,15 @@ +# This file is a copy of the +# https://github.com/exercism/configlet/blob/main/scripts/fetch-configlet.ps1 file. +# Please submit bugfixes/improvements to the above file to ensure that all tracks +# benefit from the changes. + $ErrorActionPreference = "Stop" $ProgressPreference = "SilentlyContinue" $requestOpts = @{ - Headers = If ($env:GITHUB_TOKEN) { @{ Authorization = "Bearer ${env:GITHUB_TOKEN}" } } Else { @{ } } + Headers = If ($env:GITHUB_TOKEN) { @{ Authorization = "Bearer ${env:GITHUB_TOKEN}" } } Else { @{ } } MaximumRetryCount = 3 - RetryIntervalSec = 1 + RetryIntervalSec = 1 } $arch = If ([Environment]::Is64BitOperatingSystem) { "64bit" } Else { "32bit" }