Skip to content

Commit

Permalink
fix: trim arguments surrounded in quotes in interactive mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JupiterPi committed Nov 25, 2024
1 parent f2a5d26 commit 294dbf2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/featureInterfaces/fs/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ export class FS {
}

const params = { cloudWorkingPath, args, formatJson }
// trim args surrounded by quotes
params.args = args.map(arg => (arg.startsWith("\"") && arg.endsWith("\"")) ? arg.substring(1, arg.length - 1) : arg)

const command = fsCommands.find(command => [command.cmd, ...command.aliases].includes(cmd))

Expand Down

0 comments on commit 294dbf2

Please sign in to comment.