Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

Commit

Permalink
fix: migrate relative path to absolute path before calling into shell
Browse files Browse the repository at this point in the history
  • Loading branch information
iammerrick committed Feb 9, 2016
1 parent 9ef97d5 commit 77d138e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 77d138e

Please sign in to comment.