Reverted relativizePaths change
This commit is contained in:
parent
82706a4dc8
commit
ea0e0677e5
|
@ -153,7 +153,7 @@ class Executable
|
|||
@debug('env:', env)
|
||||
@debug('PATH:', env.PATH)
|
||||
@debug('args', args)
|
||||
args = this.relativizePaths(args, cwd)
|
||||
args = this.relativizePaths(args)
|
||||
@debug('relativized args', args)
|
||||
|
||||
exe = exePath ? exeName
|
||||
|
@ -212,7 +212,8 @@ class Executable
|
|||
args = _.flatten(args)
|
||||
Promise.all(args)
|
||||
|
||||
relativizePaths: (args, tmpDir) ->
|
||||
relativizePaths: (args) ->
|
||||
tmpDir = os.tmpDir()
|
||||
newArgs = args.map((arg) ->
|
||||
isTmpFile = (typeof arg is 'string' and not arg.includes(':') and \
|
||||
path.isAbsolute(arg) and path.dirname(arg).startsWith(tmpDir))
|
||||
|
|
Loading…
Reference in New Issue