mirror of
https://github.com/tianon/docker-bash.git
synced 2026-11-19 16:06:17 +03:00
12 lines
212 B
Bash
Executable File
Generated
12 lines
212 B
Bash
Executable File
Generated
#!/usr/bin/env bash
|
|
set -Eeuo pipefail
|
|
|
|
# first arg is `-f` or `--some-option`
|
|
# or there are no args
|
|
if [ "$#" -eq 0 ] || [ "${1#-}" != "$1" ]; then
|
|
# docker run bash -c 'echo hi'
|
|
exec bash "$@"
|
|
fi
|
|
|
|
exec "$@"
|