diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-23 10:55:47 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-23 11:09:04 +0300 |
commit | eaab5d9acf6a04b350a49b285c1fe435c1eb4b90 (patch) | |
tree | 72327d6b279c9d2711a736b2a21add87e47945bd /src/db.sh | |
parent | Travis: tweak test.sh output (diff) | |
download | config-links-eaab5d9acf6a04b350a49b285c1fe435c1eb4b90.tar.gz config-links-eaab5d9acf6a04b350a49b285c1fe435c1eb4b90.zip |
support symlinks in --shared-dir
Diffstat (limited to '')
-rw-r--r-- | src/db.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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() { |