Skip to content

Commit

Permalink
Add codeowner for fetch-configlet script
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Jun 8, 2021
1 parent 6f4fa28 commit 5ad633d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ config/maintainers.json @exercism/maintainers-admin

# Code owners
.github/CODEOWNERS @exercism/maintainers-admin

# Changes to `fetch-configlet` should be made in the `exercism/configlet` repo
bin/fetch-configlet @exercism/maintainers-admin
7 changes: 3 additions & 4 deletions bin/fetch-configlet
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

# 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.
# Please submit bugfixes/improvements to the above file to ensure that all tracks benefit from the changes.

set -eo pipefail

Expand Down Expand Up @@ -50,10 +49,10 @@ get_download_url() {
cut -d'"' -f4
}

main () {
main() {
if [[ -d ./bin ]]; then
output_dir="./bin"
elif [[ $PWD = */bin ]]; then
elif [[ $PWD == */bin ]]; then
output_dir="$PWD"
else
echo "Error: no ./bin directory found. This script should be ran from a repo root." >&2
Expand Down

0 comments on commit 5ad633d

Please sign in to comment.