Skip to content

Commit

Permalink
Fix similar mistake (?) in run.js
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarlh committed Sep 20, 2020
1 parent 76a3a32 commit ce01f67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions util/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ module.exports = function (command, switches) {
var commands = command.match(regexpCommands);
if (commands) {
commands.forEach(function (c) {
c = c.replace(/\//, path.sep);
c = c.replace(/\\/, path.sep);
c = c.replace(/\//g, path.sep);
c = c.replace(/\\/g, path.sep);
c = path.normalize(c);
args.push(c);
});
Expand All @@ -48,8 +48,8 @@ module.exports = function (command, switches) {
if (output) {
args.pop();
var o = output[0];
o = o.replace(/\//, path.sep);
o = o.replace(/\\/, path.sep);
o = o.replace(/\//g, path.sep);
o = o.replace(/\\/g, path.sep);
o = o.replace(/"/g, '');
o = path.normalize(o);
args.push(o);
Expand Down

0 comments on commit ce01f67

Please sign in to comment.