From 9a3f920c9554173481d79acccedfed74357776ea Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sun, 8 Oct 2023 16:35:51 -0700 Subject: [PATCH] copy_buildsync: ensure cleanup of old symlinks fires Signed-off-by: Robin H. Johnson --- scripts/copy_buildsync.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/copy_buildsync.sh b/scripts/copy_buildsync.sh index 71e890d9..7016fa26 100755 --- a/scripts/copy_buildsync.sh +++ b/scripts/copy_buildsync.sh @@ -217,7 +217,11 @@ process_arch() { fi # Remove old links in the directory. - find "current-$v" -type l ! -name "$f" ! -name "${variant_date}*" + find "current-$v" \ + -type l \ + ! -name "$f" \ + ! -name "*${variant_date}*" \ + -delete # install new links # do NOT unconditionally use -f here, we do not want to override the