aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-01-27 12:07:02 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-01-27 12:07:02 +0300
commitfa5953005968c5f4eaa74cc4ec653e52489a6fa7 (patch)
treeb56c1833f38589d2d77bbfda2849102e0d98273a /src
parentTravis: add test_symlink_update_works (diff)
downloadconfig-links-fa5953005968c5f4eaa74cc4ec653e52489a6fa7.tar.gz
config-links-fa5953005968c5f4eaa74cc4ec653e52489a6fa7.zip
support symlinks as shared files
Diffstat (limited to 'src')
-rw-r--r--src/db.sh2
1 files changed, 1 insertions, 1 deletions
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' )
}