Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Commit 420ff37

Browse files
committed
Merge branch 'fix-file_env' into 'master'
Fixes displaying the wrong variable on error in file_env See merge request ix.ai/smtp!12
2 parents a4895fe + 2f46915 commit 420ff37

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

entrypoint.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ set -e
88
file_env() {
99
local var="$1"
1010
local fileVar="${var}_FILE"
11-
local varName="${!var@}"
1211
local def="${2:-}"
1312
if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then
14-
echo >&2 "error: both ${varName} and ${fileVar} are set (but are mutually exclusive)"
13+
echo >&2 "error: both ${var} and ${fileVar} are set (but are mutually exclusive)"
1514
exit 1
1615
fi
1716
local val="$def"

0 commit comments

Comments
 (0)