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.
1 parent 1b90080 commit dfc3a38Copy full SHA for dfc3a38
root/entrypoint.sh
@@ -5,6 +5,7 @@ for env_var in $FILE_ENV_VARS; do
5
var_name="$(echo $env_var | grep -o '.*__FILE=' | sed 's/__FILE=//g')"
6
file_path="$(echo $env_var | grep -o '__FILE=.*' | sed 's/__FILE=//g')"
7
file_content="$(cat $file_path)"
8
+ [[ ! $? -eq 0 ]] && exit 1 # Exit if last command failed
9
new_var="$(echo $var_name=$file_content)"
10
export $(echo $new_var | xargs)
11
done
0 commit comments