diff options
author | 2023-10-08 16:35:51 -0700 | |
---|---|---|
committer | 2023-10-08 16:35:51 -0700 | |
commit | 9a3f920c9554173481d79acccedfed74357776ea (patch) | |
tree | 86e78fdfc7065d89d7e364175b240d3575d1f868 /scripts | |
parent | copy_buildsync: fix corner cases for targets changing (diff) | |
download | releng-9a3f920c9554173481d79acccedfed74357776ea.tar.gz releng-9a3f920c9554173481d79acccedfed74357776ea.tar.bz2 releng-9a3f920c9554173481d79acccedfed74357776ea.zip |
copy_buildsync: ensure cleanup of old symlinks fires
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/copy_buildsync.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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 |