aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/rubber.rb2
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