Skip to content

Commit

Permalink
testing tracking down errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechsTech committed Feb 5, 2018
1 parent 0ec8db1 commit 8330c5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var u = {
files : require('../util/files'),
run : require('../util/run'),
switches: require('../util/switches'),
path : require('../util/path'),
path : require('../util/path')
};

/**
Expand All @@ -29,9 +29,9 @@ module.exports = function (archive, files, options) {
command += ' a "' + archive + '" ' + files;
} else var command = '7za a "' + archive + '" ' + files;
} catch (e) {
var command = '7z a "' + archive + '" ' + files;
var command = '7za a "' + archive + '" ' + files;
}

console.log('>>', command, options);
// Start the command
u.run(command, options)

Expand Down
2 changes: 1 addition & 1 deletion util/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ module.exports = function (command, switches) {
cmd: cmd,
args: args,
options: { stdio: 'pipe' } };

console.log('>>', res.cmd, res.args.join(' '), res.options);
var run = spawn(res.cmd, res.args, res.options);
run.stdout.on('data', function (data) {
var res = reg.exec(data.toString());
Expand Down

0 comments on commit 8330c5b

Please sign in to comment.