]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
Only create links for mercurial if it's installed.
authorSimon Ruderich <simon@ruderich.org>
Mon, 23 Feb 2009 17:57:30 +0000 (11:57 -0600)
committerSimon Ruderich <simon@ruderich.org>
Mon, 23 Feb 2009 17:57:30 +0000 (11:57 -0600)
setup.sh

index 40406ce96b7419169e11c989ef0b0273fc6eb006..965485cbc6a6d22aadfc32ac7ab073fe5c297fba 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -9,5 +9,7 @@ m4 gitconfig -DHOME=$HOME
 # Link setup.
 link gitconfig ~/.gitconfig
 link gitignore ~/.gitignore
-link hgrc ~/.hgrc
-link hgignore ~/.hgignore
+if installed hg; then
+    link hgrc ~/.hgrc
+    link hgignore ~/.hgignore
+fi