From 4b98ccb17c894e008453f98ba8b41c6600a4b0a9 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 19 Sep 2019 05:21:39 +0300 Subject: overwrite existing files in link_all_entries This was a regression, WTF was I thinking. --- src/db.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db.sh b/src/db.sh index bf19a81..a4a37a5 100644 --- a/src/db.sh +++ b/src/db.sh @@ -205,8 +205,8 @@ link_all_entries() { if symlink_points_to_shared_file "$entry"; then dump ' ... up-to-date' else - dump " ... not a symlink or doesn't point to the shared file" - remove_entry "$entry" + dump " ... not a symlink or doesn't point to the shared file, adding a symlink" + is_dry_run || link_entry "$entry" fi else dump ' ... adding a symlink' -- cgit v1.2.3