mirror of
https://github.com/louislam/dockge.git
synced 2024-10-30 01:10:39 +00:00
Fix envsubst issue
This commit is contained in:
parent
0f52bb78b8
commit
9bde02faf6
1 changed files with 5 additions and 1 deletions
|
@ -385,7 +385,11 @@ function traverseYAML(pair : Pair, env : DotenvParseOutput) : void {
|
||||||
if (item instanceof Pair) {
|
if (item instanceof Pair) {
|
||||||
traverseYAML(item, env);
|
traverseYAML(item, env);
|
||||||
} else if (item instanceof Scalar) {
|
} 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
|
// @ts-ignore
|
||||||
|
|
Loading…
Reference in a new issue