Skip to content

Commit 466cdfd

Browse files
author
adamedx
committed
Use Chef for reliable platform detection
1 parent 69b2144 commit 466cdfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/chef-shell

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ require "chef/shell"
3333

3434
# On Windows only, enable irb --noreadline because of input problems --
3535
# See CHEF-3284.
36-
IRB.conf[:USE_READLINE] = false if RUBY_PLATFORM =~ /mswin|mingw|windows/
36+
IRB.conf[:USE_READLINE] = false if Chef::Platform::windows?
3737
Shell.start

0 commit comments

Comments
 (0)