Skip to content

Commit 7d482fd

Browse files
committed
[OPS-967] Convert triple underscores in env vars to dashes in java/scala properties, double underscores to underscore
Signed-off-by: Marios Andreopoulos <opensource@andmarios.com>
1 parent 5c99c80 commit 7d482fd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

filesystem/usr/local/share/landoop/config_kafka.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ function process_variable {
3333
fi
3434
# Convert underscores in var name to stops
3535
conf="${conf//_/.}"
36-
# Convert double underscores in var name to dashes
37-
conf="${conf//../-}"
36+
# Convert triple underscores in var name to dashes
37+
conf="${conf//.../-}"
38+
# Convert double underscores in var name to underscores
39+
conf="${conf//../_}"
3840

3941

4042
echo "${conf}=${!var}" >> "$config_file"

0 commit comments

Comments
 (0)