From: Simon Ruderich Date: Sun, 16 Sep 2012 20:30:10 +0000 (+0200) Subject: setup.sh: Only link files if the program is available. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=bde1453a8131b3bc888e02aedcada660ea481405;p=config%2Fdotfiles.git setup.sh: Only link files if the program is available. --- diff --git a/setup.sh b/setup.sh index 538c079..593677c 100755 --- a/setup.sh +++ b/setup.sh @@ -21,10 +21,16 @@ . ../lib.sh # gdb, GNU debugger. -link gdbinit ~/.gdbinit +if installed gdb; then + link gdbinit ~/.gdbinit +fi # Maxima, a symbolic algebra program. -link maxima ~/.maxima +if installed maxima; then + link maxima ~/.maxima +fi # perlcritic to check Perl programs for common problems. -link perl/perlcriticrc ~/.perlcriticrc +if installed perlcritic; then + link perl/perlcriticrc ~/.perlcriticrc +fi