We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84ef4fa commit 5efaf08Copy full SHA for 5efaf08
1 file changed
root/entrypoint.sh
@@ -4,7 +4,7 @@ FILE_ENV_VARS="$(env | grep '__FILE=')"
4
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)"
+ file_content="$(cat $file_path || exit 1)"
8
new_var="$(echo $var_name=$file_content)"
9
export $(echo $new_var | xargs)
10
done
0 commit comments