From eeae861353c6940bc3cec8d980d0ff5cd355ff32 Mon Sep 17 00:00:00 2001 From: Timo Schneider Date: Thu, 13 Jun 2024 23:09:54 +0200 Subject: [PATCH] typo --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 2f1f42e..20caaae 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,7 +4,7 @@ set -e # Set up endpoint for env retrieval -echo "window._env_ = {" > /usr/share/nginx/html/env_config.js +echo "window._env_ = {" > /usr/share/nginx/html/env-config.js # Collect enviroment variables for react eval enviroment_variables="$(env | grep REACT_APP.*=)" @@ -12,7 +12,7 @@ eval enviroment_variables="$(env | grep REACT_APP.*=)" # Loop over variables env | grep REACT_APP.*= | while read -r line; do - printf "%s',\n" $line | sed "s/=/:'/" >> /usr/share/nginx/html/env_config.js + printf "%s',\n" $line | sed "s/=/:'/" >> /usr/share/nginx/html/env-config.js # Notify the user printf "Env variable %s' was injected into React App. \n" $line | sed "0,/=/{s//:'/}" @@ -20,7 +20,7 @@ do done # End the object creation -echo "}" >> /usr/share/nginx/html/env_config.js +echo "}" >> /usr/share/nginx/html/env-config.js echo "Enviroment Variable Injection Complete."