Skip to content

Commit

Permalink
fetch-configlet: add comment with upstream location (#309)
Browse files Browse the repository at this point in the history
This commit adds a comment to the `scripts/fetch-configlet` and
`scripts/fetch-configlet.ps1` files to help track maintainers understand
that they shouldn't directly change these files in their track's
repository, but instead change the upstream source.

Closes: #285
  • Loading branch information
ErikSchierboom committed May 5, 2021
1 parent 14e2dd2 commit d304fa5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions scripts/fetch-configlet
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
9 changes: 7 additions & 2 deletions scripts/fetch-configlet.ps1
Original file line number Diff line number Diff line change
@@ -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" }
Expand Down

0 comments on commit d304fa5

Please sign in to comment.