Fixed absolute paths in process files #2796 (#2797)

* Fixed absolute paths in process files #2796
This commit is contained in:
willmcenaney 2017-03-28 13:13:00 +01:00 committed by vmarchaud
parent 21fdce82aa
commit 0e6cc4946e

View File

@ -843,10 +843,7 @@ API.prototype._startJson = function(file, opts, action, pipe, cb) {
else {
var data = null;
var file_path = path.join(that.cwd, file);
if (file[0] == '/')
file_path = file;
var file_path = path.isAbsolute(file) ? file : path.join(that.cwd, file);
debug('Resolved filepath %s', file_path);