From 0613b85bf308ee7a10e33355014811d4911e4e0a Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 1 May 2014 10:10:24 -0500 Subject: Use feature detection --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index 932caba92..ced9d2c33 100755 --- a/install +++ b/install @@ -42,7 +42,7 @@ end def getc # NOTE only tested on OS X system "/bin/stty raw -echo" - if RUBY_VERSION >= '1.8.7' + if STDIN.respond_to?(:getbyte) STDIN.getbyte else STDIN.getc -- cgit v1.2.3