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

Commit

Permalink
Respect the LIBSASS_EXT build flag when falling back to git
Browse files Browse the repository at this point in the history
  • Loading branch information
xzyfer committed Apr 21, 2015
1 parent ea3430e commit 81a080b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ function initSubmodules(cb) {
function installGitDependencies(cb) {
var libsassPath = './src/libsass';

if (fs.access) { // node 0.12+, iojs 1.0.0+
if (process.env.LIBSASS_EXT) {
cb();
} else if (fs.access) { // node 0.12+, iojs 1.0.0+
fs.access(libsassPath, fs.R_OK, function(err) {
err && err.code === 'ENOENT' ? initSubmodules(cb) : cb();
});
Expand Down

0 comments on commit 81a080b

Please sign in to comment.