aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/db.sh
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-01-23 10:55:47 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-01-23 11:09:04 +0300
commiteaab5d9acf6a04b350a49b285c1fe435c1eb4b90 (patch)
tree72327d6b279c9d2711a736b2a21add87e47945bd /src/db.sh
parentTravis: tweak test.sh output (diff)
downloadconfig-links-eaab5d9acf6a04b350a49b285c1fe435c1eb4b90.tar.gz
config-links-eaab5d9acf6a04b350a49b285c1fe435c1eb4b90.zip
support symlinks in --shared-dir
Diffstat (limited to 'src/db.sh')
-rw-r--r--src/db.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db.sh b/src/db.sh
index a4a37a5..990d0a1 100644
--- a/src/db.sh
+++ b/src/db.sh
@@ -213,8 +213,8 @@ link_all_entries() {
is_dry_run || link_entry "$entry"
fi
- done < <( find "$shared_root_dir$shared_var_dir" -type f -print0 )
- done < <( find "$shared_root_dir" -regextype posix-basic -mindepth 1 -maxdepth 1 -type d -regex ".*/$var_name_regex\$" -printf '%P\0' )
+ done < <( find "$shared_root_dir$shared_var_dir/" -type f -print0 )
+ done < <( find "$shared_root_dir" -regextype posix-basic -mindepth 1 -maxdepth 1 -\( -type d -o -type l -\) -regex ".*/$var_name_regex\$" -printf '%P\0' )
}
unlink_all_entries() {