bashbrew-entrypoint.sh 300 B

1234567891011121314
  1. #!/bin/sh
  2. set -e
  3. if [ "${1#-}" != "$1" ]; then
  4. set -- bashbrew "$@"
  5. fi
  6. # if our command is a valid bashbrew subcommand, let's invoke it through bashbrew instead
  7. # (this allows for "docker run bashbrew build", etc)
  8. if bashbrew "$1" --help > /dev/null 2>&1; then
  9. set -- bashbrew "$@"
  10. fi
  11. exec "$@"