aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-01-24 12:29:08 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-01-24 12:39:24 +0300
commitd284ebd48648d6e3681e933af7ae5d3686220d22 (patch)
tree293132ab028f62ceac07957a5e02c81d3763166d /src
parentTravis: test_symlinks_remove_symlink_dir (diff)
downloadconfig-links-d284ebd48648d6e3681e933af7ae5d3686220d22.tar.gz
config-links-d284ebd48648d6e3681e933af7ae5d3686220d22.zip
more concise directory symlink handling
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 e96c48c..2e82171 100644
--- a/src/db.sh
+++ b/src/db.sh
@@ -62,7 +62,6 @@ add_entry() {
local shared_path="$shared_var_dir"
[ "$shared_var_dir" != / ] && shared_path="$shared_path/"
shared_path="$shared_path$subpath"
- shared_path="$( traverse_path -- "$shared_path" )"
local symlink_path="$symlink_var_dir"
[ "$symlink_var_dir" != / ] && symlink_path="$symlink_path/"
@@ -176,6 +175,7 @@ symlink_points_to_shared_file() {
local entry
for entry; do
local shared_path="${shared_paths[$entry]}"
+ shared_path="$( traverse_path -- "$shared_path" )"
local symlink_path="${symlink_paths[$entry]}"
local target_path
target_path="$( traverse_path -- "$symlink_path" )"