aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinstall2
1 files changed, 1 insertions, 1 deletions
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