We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f3f9ae commit edd5d15Copy full SHA for edd5d15
util/run.js
@@ -46,8 +46,10 @@ module.exports = function (command) {
46
}
47
48
// Normalize pathes before passing them to 7-Zip.
49
- args[1] = path.normalize(args[1]);
50
- args[2] = path.normalize(args[2]);
+ if (args.length > 1) {
+ args[1] = path.normalize(args[1]);
51
+ args[2] = path.normalize(args[2]);
52
+ }
53
54
// When an stdout is emitted, parse it. If an error is detected in the body
55
// of the stdout create an new error with the 7-Zip error message as the
0 commit comments