Skip to content

Commit

Permalink
upgrade modules and remove u.path in add.js
Browse files Browse the repository at this point in the history
  • Loading branch information
brickyang committed Feb 28, 2017
1 parent 47f99a6 commit 7e4c9e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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 @@ -23,8 +23,8 @@ module.exports = function (archive, files, options) {

// Convert array of files into a string if needed.
files = u.files(files);
var command = u.path(options) + ' a "' + archive + '" ' + files;

var command = '7z a "' + archive + '" ' + files;

// Start the command
u.run(command, options)
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
},
"homepage": "https://github.com/quentinrossetti/node-7zip.git",
"dependencies": {
"when": "^3.7.7",
"cross-spawn": "^4.0.0"
"when": "^3.7.8",
"cross-spawn": "^5.1.0"
},
"devDependencies": {
"chai": "^3.5.0",
"fs-extra": "^0.30.0",
"fs-extra": "^2.0.0",
"istanbul": "^0.4.5",
"mocha": "^3.0.2"
"mocha": "^3.2.0"
}
}

0 comments on commit 7e4c9e7

Please sign in to comment.