Skip to content

Commit 761ef6a

Browse files
committed
Fix hylang repo stub readme
1 parent 934eb3e commit 761ef6a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

generate-repo-stub-readme.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ fi
2626
canonicalRepo="$(curl -fsSLI -o /dev/null -w '%{url_effective}\n' "$canonicalRepo")" # follow redirects (http://stackoverflow.com/a/3077316/433558)
2727
githubRepoName="${canonicalRepo#*://github.com/}"
2828

29-
if [[ "$githubRepoName" = elastic/* ]]; then
29+
case "$githubRepoName" in
3030
# Elastic points "github-repo" at their upstream elastic/xyz-docker repos, but we want our README stubs to still point at our integration repos
31-
githubRepoName="docker-library/$repo"
32-
fi
31+
elastic/*) githubRepoName="docker-library/$repo" ;;
32+
33+
hylang/hy) githubRepoName='hylang/docker-hylang' ;;
34+
esac
3335

3436
maintainer="$(sed -e 's!%%GITHUB-REPO%%!'"$canonicalRepo"'!g' "$repo/maintainer.md")"
3537

0 commit comments

Comments
 (0)