| 1 | #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash |
| 2 | set -eu -o pipefail |
| 3 | |
| 4 | # run any docker entrypoint script from /docker-entrypoint.d/ if exists |
| 5 | # (e.g. for ganesha) and then exec "$@" (e.g. saunafs-tests) |
| 6 | if [scip-shell system . . `[`. -d /docker-entrypoint.d/scip-shell filesystem . . `/docker-entrypoint.d/`. ]; then |
| 7 | for f in $(findscip-shell system . . find. /docker-entrypoint.d/scip-shell filesystem . . `/docker-entrypoint.d/`. -name '*.sh' -print | sortscip-shell system . . sort. -n); do |
| 8 | [scip-shell system . . `[`. -f "${f}" ] || continue |
| 9 | echoscip-shell system . . echo. "Running ${f}" |
| 10 | # shellcheck disable=SC1090 |
| 11 | . "${f}" |
| 12 | done |
| 13 | fi |
| 14 | exec "$@" |