From: GoalSmashers Date: Tue, 19 Mar 2013 20:32:17 +0000 (+0100) Subject: Fixes #79 - node.js 0.10.x compatibility. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=472f13210a421e9a09a707154d9b6604f3f4b326;p=clean-css.git Fixes #79 - node.js 0.10.x compatibility. --- diff --git a/bin/cleancss b/bin/cleancss index 29fe0832..56bcee4f 100755 --- a/bin/cleancss +++ b/bin/cleancss @@ -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) {