diff --git a/Formula/rubber.rb b/Formula/rubber.rb index 883d207454..05075cbb84 100644 --- a/Formula/rubber.rb +++ b/Formula/rubber.rb @@ -21,7 +21,7 @@ class Rubber < Formula # Don't need to peg to a specific Python version Dir["#{bin}/*"].each do |f| - inreplace f, "#{HOMEBREW_PREFIX}/bin/python", "/usr/bin/env python" + inreplace f, /^#!.*\/python.*$/, "#!/usr/bin/env python" end end end