From: Simon Ruderich Date: Mon, 23 Feb 2009 17:57:30 +0000 (-0600) Subject: Only create links for mercurial if it's installed. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=015884081994883875330e9d81218f0c2eb92288;p=config%2Fdotfiles.git Only create links for mercurial if it's installed. --- diff --git a/setup.sh b/setup.sh index 40406ce..965485c 100755 --- 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