Skip to content

Commit

Permalink
Merge pull request #1452 from saper/fix-build
Browse files Browse the repository at this point in the history
Fix script/build.js logic
  • Loading branch information
xzyfer committed Apr 19, 2016
2 parents 1e4bba8 + 4f420a5 commit a15f54c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function afterBuild(options) {
return;
}

console.log('Installed in `', install, '`');
console.log('Installed in "' + install + '"');
});
});
});
Expand Down Expand Up @@ -196,11 +196,11 @@ function testBinary(options) {
return build(options);
}

if (!sass.getBinaryPath()) {
if (!sass.hasBinary(sass.getBinaryPath())) {
return build(options);
}

console.log('`', sass.getBinaryPath(), '` exists.', eol, 'testing binary.');
console.log('"' + sass.getBinaryPath() + '" exists.', eol, 'testing binary.');

try {
require('../').renderSync({
Expand Down

0 comments on commit a15f54c

Please sign in to comment.