]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - setup.sh
setup.sh: Only link abook and lbdb if installed.
[config/dotfiles.git] / setup.sh
index 3df20f496c9d7ff2f61daac7c2cbc71314f94d27..1d807bcafd0d61d5d393a8de75be3e8734791b5a 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -18,6 +18,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
+set -e
+
 . ../lib.sh
 
 
@@ -29,8 +31,12 @@ if mutt -v | grep sidebar >/dev/null 2>&1; then
 fi
 
 # Link setup.
-link abook ~/.abook
+if installed abook; then
+    link abook ~/.abook
+fi
 link gnupg ~/.gnupg
-link lbdbrc ~/.lbdbrc
+if installed lbdb; then
+    link lbdbrc ~/.lbdbrc
+fi
 link mailcap ~/.mailcap
 link mutt ~/.mutt