From 77d138e5b3aaddcc4ef6e11f8756126c595d89ff Mon Sep 17 00:00:00 2001 From: Merrick Christensen Date: Tue, 9 Feb 2016 16:09:16 -0700 Subject: [PATCH] fix: migrate relative path to absolute path before calling into shell --- install.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.js b/install.js index 265374777..7ebe7546e 100644 --- a/install.js +++ b/install.js @@ -296,7 +296,7 @@ function extractDownload(filePath) { } else { console.log('Extracting tar contents (via spawned process)') - cp.execFile('tar', ['jxf', filePath], options, function (err) { + cp.execFile('tar', ['jxf', path.resolve(filePath)], options, function (err) { if (err) { console.error('Error extracting archive') deferred.reject(err)