diff options
| author | Dave Goodell | 2012-03-20 21:49:36 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2012-03-20 20:08:03 -0700 |
| commit | 69a1b16d2bdaf922d12fd5d2d0dd728adf43a69d (patch) | |
| tree | 2a33fb090036a33552e7f2e90fbc5d418408f31d /Library | |
| parent | 6615ae9fc9594b26c9aa65a1358c9d48758169c2 (diff) | |
| download | homebrew-69a1b16d2bdaf922d12fd5d2d0dd728adf43a69d.tar.bz2 | |
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 <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/rubber.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
