mirror of
https://github.com/louislam/dockge.git
synced 2024-11-22 08:14:04 +01:00
Fixed envsubst issue (#301)
This commit is contained in:
parent
0f52bb78b8
commit
db0add7e4c
@ -385,7 +385,11 @@ function traverseYAML(pair : Pair, env : DotenvParseOutput) : void {
|
||||
if (item instanceof Pair) {
|
||||
traverseYAML(item, env);
|
||||
} else if (item instanceof Scalar) {
|
||||
item.value = envsubst(item.value, env);
|
||||
let value = item.value as unknown;
|
||||
|
||||
if (typeof(value) === "string") {
|
||||
item.value = envsubst(value, env);
|
||||
}
|
||||
}
|
||||
}
|
||||
// @ts-ignore
|
||||
|
Loading…
Reference in New Issue
Block a user