8000 Fix an issue where a empty script would still get arguments. · sammarks/rushstack@97043a2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 97043a2

Browse files
committed
Fix an issue where a empty script would still get arguments.
1 parent 12bb8df commit 97043a2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

apps/rush-lib/src/logic/TaskSelector.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,12 @@ export class TaskSelector {
5151
return undefined;
5252
}
5353

54-
const taskCommand: string = `${script} ${customParameterValues.join(' ')}`;
55-
return process.platform === 'win32' ? convertSlashesForWindows(taskCommand) : taskCommand;
54+
if (!script) {
55+
return '';
56+
} else {
57+
const taskCommand: string = `${script} ${customParameterValues.join(' ')}`;
58+
return process.platform === 'win32' ? convertSlashesForWindows(taskCommand) : taskCommand;
59+
}
5660
}
5761

5862
public registerTasks(): TaskCollection {

0 commit comments

Comments
 (0)
0