aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mercurial.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/mercurial.rb b/Library/Formula/mercurial.rb
index 3477c74f3..b38da6eea 100644
--- a/Library/Formula/mercurial.rb
+++ b/Library/Formula/mercurial.rb
@@ -39,7 +39,7 @@ class Mercurial < Formula
bin.install_symlink libexec+'hg'
# Remove the hard-coded python invocation from hg
- inreplace bin+'hg', %r[#!/.*/python(/.*)?], '#!/usr/bin/env python'
+ inreplace bin+'hg', %r[^#!.*$], '#!/usr/bin/env python'
# Install some contribs
bin.install 'contrib/hgk'