Skip to content

Commit

Permalink
Trim arguments after splitting them
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchell-codecov committed Jul 26, 2022
1 parent 68d5f6d commit eb38f61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/buildExec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const buildExec = () => {
execArgs.push('-e', envVarsArg.join(','));
}
if (functionalities) {
functionalities.split(',').forEach((f) => {
functionalities.split(',').map((f) => f.trim()).forEach((f) => {
execArgs.push('-X', `${f}`);
});
}
Expand All @@ -102,12 +102,12 @@ const buildExec = () => {
execArgs.push('-f', `${file}`);
}
if (files) {
files.split(',').forEach((f) => {
files.split(',').map((f) => f.trim()).forEach((f) => {
execArgs.push('-f', `${f}`);
});
}
if (flags) {
flags.split(',').forEach((f) => {
flags.split(',').map((f) => f.trim()).forEach((f) => {
execArgs.push('-F', `${f}`);
});
}
Expand Down

0 comments on commit eb38f61

Please sign in to comment.