From eaab5d9acf6a04b350a49b285c1fe435c1eb4b90 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 23 Jan 2020 10:55:47 +0300 Subject: support symlinks in --shared-dir --- src/db.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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() { -- cgit v1.2.3