fixed replacing underscores

This commit is contained in:
Sangwon Lee 2017-03-21 16:21:05 +09:00
parent 734b63a31e
commit 139df964c0

View File

@ -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"