aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorJack Nagel2014-05-01 10:10:24 -0500
committerJack Nagel2014-05-01 10:10:24 -0500
commit0613b85bf308ee7a10e33355014811d4911e4e0a (patch)
treeb9af1b16ceff1ecd7746ac1b453e91f4bf754330 /install
parent4f7d6849e5fc5a27889af51246b34c88536521c8 (diff)
downloadhomebrew-0613b85bf308ee7a10e33355014811d4911e4e0a.tar.bz2
Use feature detection
Diffstat (limited to 'install')
-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