Permalink
Browse files

Merge pull request #30 from mutru/master

Use File.read instead of `more` in extconf.rb.
  • Loading branch information...
2 parents 5618854 + 7479969 commit c691121feb53201b720cc764ea0039276f6d9174 @ohler55 committed Jul 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/oj/extconf.rb
View
@@ -32,7 +32,7 @@
# missing #define. This is the quick and easy way around it.
if 'x86_64-linux' == RUBY_PLATFORM && '1.9.3' == RUBY_VERSION && '2011-10-30' == RUBY_RELEASE_DATE
begin
- dflags['NEEDS_STPCPY'] = nil if `more /etc/issue`.include?('CentOS release 5.4')
+ dflags['NEEDS_STPCPY'] = nil if File.read('/etc/redhat-release').include?('CentOS release 5.4')
rescue Exception => e
end
end

0 comments on commit c691121

Please sign in to comment.