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

Commit fa77044

Browse files
committed
Respect the LIBSASS_EXT build flag when falling back to git
1 parent 0e7278b commit fa77044

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/build.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ function initSubmodules(cb) {
101101
function installGitDependencies(cb) {
102102
var libsassPath = './src/libsass';
103103

104-
if (fs.access) { // node 0.12+, iojs 1.0.0+
104+
if (process.env.LIBSASS_EXT) {
105+
cb();
106+
} else if (fs.access) { // node 0.12+, iojs 1.0.0+
105107
fs.access(libsassPath, fs.R_OK, function(err) {
106108
err && err.code === 'ENOENT' ? initSubmodules(cb) : cb();
107109
});

0 commit comments

Comments
 (0)