From bde1453a8131b3bc888e02aedcada660ea481405 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 16 Sep 2012 22:30:10 +0200 Subject: [PATCH] setup.sh: Only link files if the program is available. --- setup.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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 -- 2.45.2