mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
* Fixed absolute paths in process files #2796
This commit is contained in:
parent
21fdce82aa
commit
0e6cc4946e
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user