command start and end injector

pull/310/head
Frostebite 2021-12-29 17:15:27 +00:00
parent 8b8fa69dc2
commit 81ca1ad876
3 changed files with 8 additions and 2 deletions

5
dist/index.js vendored
View File

@ -3244,7 +3244,10 @@ class ImageEnvironmentFactory {
const environmentVariables = ImageEnvironmentFactory.getEnvironmentVariables(parameters);
let string = '';
for (const p of environmentVariables) {
string += `--env ${p.name}="${p.value}" \
if (p.value === '' || p.value === undefined) {
continue;
}
string += `--env ${p.name}="${p.value}" \
`;
}
return string;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -8,6 +8,9 @@ class ImageEnvironmentFactory {
const environmentVariables = ImageEnvironmentFactory.getEnvironmentVariables(parameters);
let string = '';
for (const p of environmentVariables) {
if (p.value === '' || p.value === undefined) {
continue;
}
string += `--env ${p.name}="${p.value}" \
`;
}