From 761ef6ac4d4e67a5b66269b88290bc5e51b17d71 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Thu, 15 Jun 2023 16:46:35 -0700 Subject: [PATCH] Fix hylang repo stub readme --- generate-repo-stub-readme.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/generate-repo-stub-readme.sh b/generate-repo-stub-readme.sh index 84d107606..fb4d6915c 100755 --- a/generate-repo-stub-readme.sh +++ b/generate-repo-stub-readme.sh @@ -26,10 +26,12 @@ fi canonicalRepo="$(curl -fsSLI -o /dev/null -w '%{url_effective}\n' "$canonicalRepo")" # follow redirects (http://stackoverflow.com/a/3077316/433558) githubRepoName="${canonicalRepo#*://github.com/}" -if [[ "$githubRepoName" = elastic/* ]]; then +case "$githubRepoName" in # Elastic points "github-repo" at their upstream elastic/xyz-docker repos, but we want our README stubs to still point at our integration repos - githubRepoName="docker-library/$repo" -fi + elastic/*) githubRepoName="docker-library/$repo" ;; + + hylang/hy) githubRepoName='hylang/docker-hylang' ;; +esac maintainer="$(sed -e 's!%%GITHUB-REPO%%!'"$canonicalRepo"'!g' "$repo/maintainer.md")"