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>
This commit is contained in:
parent
556b3e0ae1
commit
a7c069110a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue