1
0
mirror of https://github.com/distribution/distribution-library-image synced 2024-11-12 05:15:50 +01:00
distribution-library-image/docker-entrypoint.sh
Richard Scothern d688e56dc3 Detect yaml or subcommand arguments
Signed-off-by: Richard Scothern <richard.scothern@docker.com>
2016-06-14 11:09:06 -07:00

11 lines
155 B
Bash
Executable File

#!/bin/sh
set -e
case "$1" in
*.yaml|*.yml) set -- registry serve "$@" ;;
serve|garbage-collect|help|-*) set -- registry "$@" ;;
esac
exec "$@"