From d284ebd48648d6e3681e933af7ae5d3686220d22 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 24 Jan 2020 12:29:08 +0300 Subject: more concise directory symlink handling --- 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 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" )" -- cgit v1.2.3