fixed replacing underscores
This commit is contained in:
parent
734b63a31e
commit
139df964c0
@ -23,7 +23,7 @@ function configure() {
|
|||||||
|
|
||||||
echo "Configuring $module"
|
echo "Configuring $module"
|
||||||
for c in `printenv | perl -sne 'print "$1 " if m/^${envPrefix}_(.+?)=.*/' -- -envPrefix=$envPrefix`; do
|
for c in `printenv | perl -sne 'print "$1 " if m/^${envPrefix}_(.+?)=.*/' -- -envPrefix=$envPrefix`; do
|
||||||
name=`echo ${c} | perl -pe 's/___/-/g; s/__/_/g; s/_/./g'`
|
name=`echo ${c} | perl -pe 's/___/-/g; s/__/@/g; s/_/./g; s/@/_/g;'`
|
||||||
var="${envPrefix}_${c}"
|
var="${envPrefix}_${c}"
|
||||||
value=${!var}
|
value=${!var}
|
||||||
echo " - Setting $name=$value"
|
echo " - Setting $name=$value"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user