|
|
@@ -13,6 +13,11 @@ if [ -z "${BASHBREW_LIBRARY:-}" ]; then
|
|
|
repo="https://github.com/docker-library/official-images/raw/master/library/$repo"
|
|
|
fi
|
|
|
|
|
|
+if [ -n "$ARCH_SPECIFIC_DOCS" ] && archTags="$(bashbrew cat --format '{{ range .Entries }}{{ if .HasArchitecture arch }}{{ .Tags | first }}{{ "\n" }}{{ end }}{{ end }}' "$repo")" && [ -z "$archTags" ]; then
|
|
|
+ echo "**WARNING:** THIS IMAGE *IS NOT SUPPORTED* ON THE \`$BASHBREW_ARCH\` ARCHITECTURE"
|
|
|
+ exit
|
|
|
+fi
|
|
|
+
|
|
|
bashbrew cat \
|
|
|
- -F "$(dirname "$BASH_SOURCE")/$(basename "$BASH_SOURCE" .sh).tmpl" \
|
|
|
- "$repo"
|
|
|
+ -F "$(dirname "$BASH_SOURCE")/$(basename "$BASH_SOURCE" .sh).tmpl" \
|
|
|
+ "$repo"
|