Skip to content

Commit

Permalink
fixed replacing underscores
Browse files Browse the repository at this point in the history
  • Loading branch information
sangwonl committed Mar 21, 2017
1 parent 734b63a commit 139df96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function configure() {

echo "Configuring $module"
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}"
value=${!var}
echo " - Setting $name=$value"
Expand Down

0 comments on commit 139df96

Please sign in to comment.