Commit 7ceddc17 by Adeel

Install: Fixes download bug.

parent 4921ee77
...@@ -32,6 +32,8 @@ function download(url, dest, cb) { ...@@ -32,6 +32,8 @@ function download(url, dest, cb) {
} }
response.pipe(fs.createWriteStream(dest)); response.pipe(fs.createWriteStream(dest));
cb();
}).on('error', returnError); }).on('error', returnError);
}); });
} }
...@@ -75,11 +77,10 @@ function applyProxy(options, cb) { ...@@ -75,11 +77,10 @@ function applyProxy(options, cb) {
function checkAndDownloadBinary() { function checkAndDownloadBinary() {
try { try {
process.sass.getBinaryPath(true); process.sass.getBinaryPath(true);
} catch (e) {
return; return;
} } catch (e) { }
mkdirp(path.dirname(process.sass.binaryPath), function(err) { mkdir(path.dirname(process.sass.binaryPath), function(err) {
if (err) { if (err) {
console.error(err); console.error(err);
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment