From 3db95ce50ca858dfb2c1977ada8eef6e02c46901 Mon Sep 17 00:00:00 2001 From: Clemens Stadlbauer Date: Sat, 29 Aug 2015 22:47:50 +0200 Subject: [PATCH] Prevented incorrect softlink from being created If the "autoload" directory softlink has already been created, "make install" would place a recursive softlink inside it on the next install, which made future installs fail. --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 39792d3a..f44d36e1 100644 --- a/src/Makefile +++ b/src/Makefile @@ -62,7 +62,7 @@ install: kak mkdir -p $(sharedir)/rc install -m 0644 ../share/kak/kakrc $(sharedir) install -m 0644 ../rc/* $(sharedir)/rc - ln -s rc $(sharedir)/autoload + [ -e $(sharedir)/autoload ] || ln -s rc $(sharedir)/autoload mkdir -p $(sharedir)/colors install -m 0644 ../colors/* $(sharedir)/colors mkdir -p $(docdir)