From 69a1b16d2bdaf922d12fd5d2d0dd728adf43a69d Mon Sep 17 00:00:00 2001 From: Dave Goodell Date: Tue, 20 Mar 2012 21:49:36 -0500 Subject: rubber: improve shebang replacement pattern The old pattern assumed that python was installed via homebrew, which is not necessarily true. Signed-off-by: Adam Vandenberg --- Library/Formula/rubber.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Formula') diff --git a/Library/Formula/rubber.rb b/Library/Formula/rubber.rb index 883d20745..05075cbb8 100644 --- a/Library/Formula/rubber.rb +++ b/Library/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 -- cgit v1.2.3