We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50f78bf commit b15f159Copy full SHA for b15f159
1 file changed
pkg/docker/entrypoint.sh
@@ -23,6 +23,10 @@ function file_env() {
23
local val="$def"
24
if [ "${!var:-}" ]; then
25
val="${!var}"
26
+ elif [ "${!fileVar:-}" ] && [ ! -r "${!fileVar}" ]; then
27
+ printf >&2 'error: %s is set to "%s" but the file does not exist or is not readable\n' \
28
+ "$fileVar" "${!fileVar}"
29
+ exit 1
30
elif [ "${!fileVar:-}" ]; then
31
val="$(< "${!fileVar}")"
32
fi
0 commit comments