docs/.template-helpers/generate-dockerfile-links-p...

14 lines
287 B
Bash
Executable File

#!/bin/bash
set -e
repo="$1"
if [ -z "$repo" ]; then
echo >&2 "usage: $0 repo"
echo >&2 " ie: $0 hylang"
exit 1
fi
bashbrew cat \
-F "$(dirname "$BASH_SOURCE")/$(basename "$BASH_SOURCE" .sh).tmpl" \
"https://github.com/docker-library/official-images/raw/master/library/$repo"