mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-14 17:27:59 -05:00
Using original existence check with mkdirp call on failure
This commit is contained in:
@@ -427,11 +427,18 @@
|
||||
});
|
||||
}
|
||||
};
|
||||
return mkdirp(jsDir, function(err) {
|
||||
if (!err) {
|
||||
return exists(jsDir, function(itExists) {
|
||||
var _this = this;
|
||||
if (itExists) {
|
||||
return compile();
|
||||
} else {
|
||||
return exec("mkdir -p " + jsDir, compile);
|
||||
return mkdirp(jsDir, function(err) {
|
||||
if (err) {
|
||||
printLine("Error while creating dir " + jsDir + ": " + err);
|
||||
exec("mkdir -p " + jsDir);
|
||||
}
|
||||
return compile();
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user