Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ const proxyifyCmd = (t, ...cmdStart) => {
t = t || function _t(...args) {
// Wrap all the arguments in quotes
const newArgs = cmdStart
.concat(args)
.map((x) => JSON.stringify(x));
.concat(args);
// Run this command in the shell
return origShell.exec.call(this.stdout, newArgs.join(' '));
return origShell.cmd(...newArgs);
};
// Store the list of commands, in case we have a subcommand chain
t[cmdArrayAttr] = cmdStart;
Expand Down
Loading