harbor/make/photon/registry/entrypoint.sh
2017-07-24 03:21:38 -07:00

10 lines
154 B
Bash

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