lbry-docker/chainquery/docker-entrypoint.sh
2018-10-03 13:44:57 -04:00

13 lines
292 B
Bash

#!/bin/bash
# default to run whatever the user wanted like "/bin/bash"
## If user runs no need to run any more of the entrypoint script.
if [[ -z "$@" ]]; then
echo "User did not attempt input. Now executing docker-entrypoint."
else
echo "Running $@."
exec "$@"
exit 1
fi
/bin/bash