From: Simon Ruderich Date: Thu, 26 Feb 2009 19:26:45 +0000 (-0600) Subject: Only create links if applications are installed. X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=2356c71cf1d38a2f09b76d10e6a0ba40dcf9ce11 Only create links if applications are installed. --- diff --git a/setup.sh b/setup.sh index 5dfde4c..e928a80 100755 --- a/setup.sh +++ b/setup.sh @@ -4,5 +4,9 @@ . ../lib.sh # Link setup. -link stumpwmrc ~/.stumpwmrc -link xinitrc ~/.xinitrc +if installed stumpwm; then + link stumpwmrc ~/.stumpwmrc +fi +if installed X; then + link xinitrc ~/.xinitrc +fi