]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
Only create links if applications are installed.
authorSimon Ruderich <simon@ruderich.org>
Thu, 26 Feb 2009 19:26:45 +0000 (13:26 -0600)
committerSimon Ruderich <simon@ruderich.org>
Thu, 26 Feb 2009 19:26:45 +0000 (13:26 -0600)
setup.sh

index 5dfde4c214565f63e90f891ecf7ed72e85690360..e928a804a3b1036714538c2f06f29d23b76450ce 100755 (executable)
--- 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