Fixes #79 - node.js 0.10.x compatibility.
authorGoalSmashers <jakub@goalsmashers.com>
Tue, 19 Mar 2013 20:32:17 +0000 (21:32 +0100)
committerGoalSmashers <jakub@goalsmashers.com>
Tue, 19 Mar 2013 20:32:17 +0000 (21:32 +0100)
bin/cleancss

index 29fe083..56bcee4 100755 (executable)
@@ -43,7 +43,7 @@ var options = {
   target: null
 };
 var cleanOptions = {};
-var fromStdin = !process.env['__DIRECT__'] && process.stdin.writable;
+var fromStdin = !process.env['__DIRECT__'] && !process.stdin.isTTY;
 
 // If no sensible data passed in just print help and exit
 if (!fromStdin && commands.args.length == 0) {