From: Ian Kelling Date: Wed, 9 Jun 2021 01:16:08 +0000 (-0400) Subject: bug fix X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=0b5a48ad2010bc18c6015ca16b497b68f5273b9c;p=distro-setup bug fix --- 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"