From 83b720761d212cbf3e73cac7ca6bc505cb34eeb4 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 22 Jan 2012 18:40:29 -0800 Subject: git-hg: Add warning if Mercurial isn't found. --- Library/Formula/git-hg.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Library/Formula') 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 -- cgit v1.2.3