Skip to content

Commit

Permalink
fix(commands): add check for ctx.arguments in AbstractCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
shblue21 committed May 28, 2023
1 parent 6e8b0c1 commit 5231023
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tasks/JReleaserTask/commands/abstractCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ export abstract class AbstractCommand implements ICommand {
constructor(protected toolrunner: toolrunner.ToolRunner) {}

private setupCommon(ctx: ITaskContext): void {
for (const arg of ctx.arguments.split(' ')) {
this.options.push(arg);
if (ctx.arguments) {
for (const arg of ctx.arguments.split(' ')) {
this.options.push(arg);
}
}
}

Expand Down

0 comments on commit 5231023

Please sign in to comment.