From: Simon Ruderich Date: Sun, 7 Mar 2010 14:16:25 +0000 (+0100) Subject: setup.sh: Only create git configs when it's available. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=34380350ab6a9207aa210cf8bdc23618d10b0fff;p=config%2Fdotfiles.git setup.sh: Only create git configs when it's available. --- diff --git a/setup.sh b/setup.sh index d070085..d13b36f 100755 --- a/setup.sh +++ b/setup.sh @@ -5,8 +5,10 @@ . ../lib.sh -generate m4 gitconfig -DGITIGNORE=`pwd`/gitignore -DOS=`os` -link gitconfig ~/.gitconfig +if installed git; then + generate m4 gitconfig -DGITIGNORE=`pwd`/gitignore -DOS=`os` + link gitconfig ~/.gitconfig +fi if installed tig; then link tigrc ~/.tigrc