diff options
| author | Adam Vandenberg | 2012-01-22 18:40:29 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-01-22 18:40:29 -0800 |
| commit | 83b720761d212cbf3e73cac7ca6bc505cb34eeb4 (patch) | |
| tree | c1a33d930e781c1270fe8e19aa27ec19345454d3 /Library/Formula/git-hg.rb | |
| parent | fd2258dd3ee671d2d0271a96547943429e1bfaad (diff) | |
| download | homebrew-83b720761d212cbf3e73cac7ca6bc505cb34eeb4.tar.bz2 | |
git-hg: Add warning if Mercurial isn't found.
Diffstat (limited to 'Library/Formula/git-hg.rb')
| -rw-r--r-- | Library/Formula/git-hg.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/git-hg.rb b/Library/Formula/git-hg.rb index a8634fa79..ac2a4b6d9 100644 --- a/Library/Formula/git-hg.rb +++ b/Library/Formula/git-hg.rb @@ -5,6 +5,11 @@ class GitHg < Formula homepage 'http://offbytwo.com/git-hg/' def install + unless `/usr/bin/which hg`.size > 0 + puts "You may need to install Mercurial before using this software:" + puts " brew install mercurial" + end + prefix.install Dir['*'] end end |
