Fix hylang repo stub readme
This commit is contained in:
parent
934eb3e87a
commit
761ef6ac4d
|
|
@ -26,10 +26,12 @@ fi
|
||||||
canonicalRepo="$(curl -fsSLI -o /dev/null -w '%{url_effective}\n' "$canonicalRepo")" # follow redirects (http://stackoverflow.com/a/3077316/433558)
|
canonicalRepo="$(curl -fsSLI -o /dev/null -w '%{url_effective}\n' "$canonicalRepo")" # follow redirects (http://stackoverflow.com/a/3077316/433558)
|
||||||
githubRepoName="${canonicalRepo#*://github.com/}"
|
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
|
# 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"
|
elastic/*) githubRepoName="docker-library/$repo" ;;
|
||||||
fi
|
|
||||||
|
hylang/hy) githubRepoName='hylang/docker-hylang' ;;
|
||||||
|
esac
|
||||||
|
|
||||||
maintainer="$(sed -e 's!%%GITHUB-REPO%%!'"$canonicalRepo"'!g' "$repo/maintainer.md")"
|
maintainer="$(sed -e 's!%%GITHUB-REPO%%!'"$canonicalRepo"'!g' "$repo/maintainer.md")"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue