From 9fa1a19703a43ac8c246f99cd5a20268e53e09fc Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 27 Sep 2012 09:02:22 -0400 Subject: [PATCH] Don't force loopy local symlinks if we've already linked a parent. This avoids things like: .emacs.d/site-lisp -> .../patched-src/.emacs.d/site-lisp .emacs.d/site-lisp/querty.el -> querty.el which is an endless, self-referential loop for querty.el. --- dotfiles.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dotfiles.sh b/dotfiles.sh index 907fbe2..54ce7a3 100755 --- a/dotfiles.sh +++ b/dotfiles.sh @@ -592,6 +592,9 @@ function link() if [ "${FORCE_LINK}" = 'no' ]; then # don't prompt about --force-link, because this will happen a lot continue # already simlinked + elif [ ! -h "${TARGET}/${FILE}" ]; then + # target file/dir underneath an already symlinked dir + continue else # don't backup links that already point to the right place BACKUP='no' -- 2.26.2