From d2df641b0d23fd1f709b71e28026b2dedb39f672 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 27 Dec 2016 11:03:51 -0800 Subject: [PATCH] Write path.txt after extraction --- npm/install.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/npm/install.js b/npm/install.js index 07f7393e6c..afcff4031c 100755 --- a/npm/install.js +++ b/npm/install.js @@ -47,9 +47,9 @@ download({ // unzips and makes path.txt point at the correct executable function extractFile (err, zipPath) { if (err) return onerror(err) - fs.writeFile(path.join(__dirname, 'path.txt'), paths[platform], function (err) { + extract(zipPath, {dir: path.join(__dirname, 'dist')}, function (err) { if (err) return onerror(err) - extract(zipPath, {dir: path.join(__dirname, 'dist')}, function (err) { + fs.writeFile(path.join(__dirname, 'path.txt'), paths[platform], function (err) { if (err) return onerror(err) }) })