close the file written to in lessc. Fixes #570

This commit is contained in:
Luke Page
2012-08-12 17:39:20 +01:00
parent 3e052e5580
commit 861b63ce08

View File

@@ -111,6 +111,7 @@ var parseLessFile = function (e, data) {
if (output) {
fd = fs.openSync(output, "w");
fs.writeSync(fd, css, 0, "utf8");
fs.closeSync(fd);
} else {
sys.print(css);
}