From 0b5a48ad2010bc18c6015ca16b497b68f5273b9c Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Tue, 8 Jun 2021 21:16:08 -0400 Subject: [PATCH] bug fix --- conflink | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conflink b/conflink index 187f959..b0e67ad 100755 --- a/conflink +++ b/conflink @@ -44,7 +44,8 @@ shopt -s extglob shopt -s dotglob # If we make a link back to the root, we stop going deeper into subdir_files. -# This makes it so we can do subdir directories. +# This makes it so we can do subdir directories. eg +# /p/c/subdir_files/.config/gajim -> ../../gagim # # Also note, under filesystem/, symlinks are expanded. @@ -63,8 +64,7 @@ subdir-link-r() { for path in "${targets[@]}"; do local fullpath fullpath="$(readlink -f "$path")" - #e $fullpath $below # debug - if [[ -f $path || $(dirname $(readlink -f "$fullpath")) == "$below" ]]; then + if [[ -f $path || $(dirname "$fullpath") == "$below" ]]; then m lnf -T "$path" "$HOME/${path#$root/}" elif [[ -d "$path" ]]; then subdir-link-r "$root" "$path" -- 2.30.2