From fa5953005968c5f4eaa74cc4ec653e52489a6fa7 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 27 Jan 2020 12:07:02 +0300 Subject: support symlinks as shared files --- src/db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/db.sh b/src/db.sh index 2e82171..760441d 100644 --- a/src/db.sh +++ b/src/db.sh @@ -215,7 +215,7 @@ 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$shared_var_dir/" -\( -type f -o -type l -\) -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' ) } -- cgit v1.2.3