We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a4895fe + 2f46915 commit 420ff37Copy full SHA for 420ff37
1 file changed
entrypoint.sh
@@ -8,10 +8,9 @@ set -e
8
file_env() {
9
local var="$1"
10
local fileVar="${var}_FILE"
11
- local varName="${!var@}"
12
local def="${2:-}"
13
if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then
14
- echo >&2 "error: both ${varName} and ${fileVar} are set (but are mutually exclusive)"
+ echo >&2 "error: both ${var} and ${fileVar} are set (but are mutually exclusive)"
15
exit 1
16
fi
17
local val="$def"
0 commit comments