Skip to content

Commit

Permalink
fix: fix bug with mutating incoming args for transpile readme process
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinWilkinson committed Aug 23, 2023
1 parent b557e07 commit 23c1357
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cicd/scripts/runners/TranspileReadMeRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,11 @@ export class TranspileReadMeRunner extends ScriptRunner {
* @inheritdoc
*/
protected mutateArgs(args: string[]): string[] {
let dirPath = Utils.normalizePath(args[0]);
let [dirPath, token] = args;
dirPath = Utils.normalizePath(args[0]);
dirPath = Utils.trimAllEndingValue(dirPath, "/");

return [dirPath];
return [dirPath, token];
}

/**
Expand Down

0 comments on commit 23c1357

Please sign in to comment.