]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
setup.sh: Only create git configs when it's available.
authorSimon Ruderich <simon@ruderich.org>
Sun, 7 Mar 2010 14:16:25 +0000 (15:16 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sun, 7 Mar 2010 14:16:25 +0000 (15:16 +0100)
setup.sh

index d07008573dc7b7bdf7a1954ea2019e15443decea..d13b36fa27cc468efd33ae23ec851816a1b9053c 100755 (executable)
--- 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