Commit e684d7bb authored by tom's avatar tom

fix envs replace script

parent 2a6170a0
...@@ -18,9 +18,9 @@ function replace_envs { ...@@ -18,9 +18,9 @@ function replace_envs {
# split # split
configName="$(cut -d'=' -f1 <<<"$line")" configName="$(cut -d'=' -f1 <<<"$line")"
configValue="$(cut -d'=' -f2 <<<"$line")" configValue="$(cut -d'=' -f2- <<<"$line")"
# get system env # get system env
envValue=$(env | grep "^$configName=" | grep -oe '[^=]*$'); envValue=$(env | grep "^$configName=" | sed "s/^$configName=//g");
# if config found # if config found
if [ -n "$configValue" ]; then if [ -n "$configValue" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment