Reverted relativizePaths change

This commit is contained in:
Brian Bugh 2017-07-25 11:58:28 -05:00
parent 82706a4dc8
commit ea0e0677e5
1 changed files with 3 additions and 2 deletions

View File

@ -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))