acr-task-commands/cssc/docker-entrypoint.sh

11 строки
211 B
Bash
Executable File

#!/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 "$@"