From cec235ca3f368cc908cf9d7dfe6cd6ec19f536e4 Mon Sep 17 00:00:00 2001 From: Kornelius Kalnbach Date: Mon, 19 Sep 2011 02:49:28 +0200 Subject: don't close stdout --- bin/coderay | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/coderay') diff --git a/bin/coderay b/bin/coderay index 994098d..ccf16a9 100755 --- a/bin/coderay +++ b/bin/coderay @@ -159,7 +159,7 @@ when 'highlight', nil rescue CodeRay::Scanners::Scanner::ScanError # FIXME: rescue Errno::EPIPE # this is sometimes raised by pagers; ignore [TODO: wtf?] ensure - file.close + file.close if output_file end end when 'li', 'list' -- cgit v1.2.1