ruby-binary-shebang.patch 267 B

1234567891011
  1. --- a/installer.rb
  2. +++ b/installer.rb
  3. @@ -596,7 +596,7 @@
  4. rest = nil
  5. File.open(filename, 'rb') do |f|
  6. shebang = f.readline
  7. - if shebang =~ /ruby/
  8. + if shebang =~ /^#!.*ruby/
  9. puts "Updating #{filename}..."
  10. rest = f.read
  11. end