Skip to content

Commit 0f45ee4

Browse files
committed
Merge pull request #22 from mkristian/master
fixes regex to check for #!/ inside the binstub
2 parents a893680 + 0486094 commit 0f45ee4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/executable-hooks/regenerate_binstubs_command.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def try_to_fix_binstubs(spec)
6363
executable_paths.map do |path|
6464
[path, File.readlines(path).map(&:chomp)]
6565
end
66-
return false if executable_shebangs.detect{|path, lines| !lines[0] =~ /^#!\// }
66+
return false if executable_shebangs.detect{|path, lines| !(lines[0] =~ /^#!\//) }
6767
puts "#{spec.name} #{spec.version}"
6868
executable_mode = 0111
6969
executable_shebangs.map do |path, lines|

0 commit comments

Comments
 (0)