kopia lustrzana https://github.com/jupyterhub/repo2docker
13 wiersze
369 B
Bash
Executable File
13 wiersze
369 B
Bash
Executable File
#!/bin/bash -l
|
|
# lightest possible entrypoint that ensures that
|
|
# we use a login shell to get a fully configured shell environment
|
|
# (e.g. sourcing /etc/profile.d, ~/.bashrc, and friends)
|
|
if [[ ! -z "${R2D_ENTRYPOINT:-}" ]]; then
|
|
if [[ ! -x "$R2D_ENTRYPOINT" ]]; then
|
|
chmod u+x "$R2D_ENTRYPOINT"
|
|
fi
|
|
exec "$R2D_ENTRYPOINT" "$@"
|
|
else
|
|
exec "$@"
|
|
fi
|