summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authoradamedx <adamed@opscode.com>2013-07-10 14:15:58 -0700
committeradamedx <adamed@opscode.com>2013-07-11 06:50:27 -0700
commit466cdfde0fe9d54edcacf37737b982c672fd8357 (patch)
treed8a8054cf0f2dcd2a5ed32ba1efaa611530ee6b0 /bin
parent69b214405bfd475c100551b396a9ccf2d1839669 (diff)
downloadchef-466cdfde0fe9d54edcacf37737b982c672fd8357.tar.gz
Use Chef for reliable platform detection
Diffstat (limited to 'bin')
-rwxr-xr-xbin/chef-shell2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/chef-shell b/bin/chef-shell
index d6ebfc9fe2..f334635742 100755
--- a/bin/chef-shell
+++ b/bin/chef-shell
@@ -33,5 +33,5 @@ require "chef/shell"
# On Windows only, enable irb --noreadline because of input problems --
# See CHEF-3284.
-IRB.conf[:USE_READLINE] = false if RUBY_PLATFORM =~ /mswin|mingw|windows/
+IRB.conf[:USE_READLINE] = false if Chef::Platform::windows?
Shell.start