Permalink
Browse files

Fixed weird error, where input wasn't being read as a string.

  • Loading branch information...
1 parent 6929a1c commit e54f5eac4d43c7d9e4aa97bb823641ab7148d2ad @omni5cience omni5cience committed Dec 12, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 Commands/Save to CSS.tmCommand
@@ -6,15 +6,15 @@
<string>saveActiveFile</string>
<key>command</key>
<string>#!/usr/bin/env node
-var sys = require('sys');
+var util = require('util');
var fs = require('fs');
var less = require('less');
var less_file = process.env.TM_FILEPATH;
var css_file = less_file.replace(/\.less$/, ".css");
var input = fs.readFileSync(less_file);
-less.render(input, function (e, css) {
+less.render(input+"", function (e, css) {
if (e) { throw e; }
fs.writeFileSync(css_file, css);
});

0 comments on commit e54f5ea

Please sign in to comment.