13 lines
255 B
Bash
13 lines
255 B
Bash
|
#!/bin/sh
|
||
|
set -f
|
||
|
|
||
|
while [ -n "${ENVSUBST_ARGS}" ] ; do
|
||
|
[ -f "${ENVSUBST_ARGS}" ] || break
|
||
|
[ -s "${ENVSUBST_ARGS}" ] || break
|
||
|
|
||
|
exec envsubst "$(cat "${ENVSUBST_ARGS}" </dev/null)" "$@"
|
||
|
exit 126
|
||
|
done
|
||
|
|
||
|
exec envsubst "$(envsubst-args.sh </dev/null)" "$@"
|