commit:     ebb201a6ddfac32e10c9ffdf758f1a553462d9fc
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 12 17:45:42 2021 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Fri Nov 12 17:45:42 2021 +0000
URL:        https://gitweb.gentoo.org/proj/releng.git/commit/?id=ebb201a6

Actually remove dead txt files

Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 scripts/copy_buildsync.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/scripts/copy_buildsync.sh b/scripts/copy_buildsync.sh
index 78cc1653..f7f9a3df 100755
--- a/scripts/copy_buildsync.sh
+++ b/scripts/copy_buildsync.sh
@@ -236,8 +236,10 @@ process_arch() {
                                | xargs -n1 --no-run-if-empty readlink -f
                done >"${_dead}"
                if test -s "${_dead}"; then
-                               echo "copy_buildsync: dead latest*txt files to 
verify:" 1>&2
-                               cat "${_dead}" 1>&2
+                               echo "copy_buildsync: removing dead latest*txt 
files:" 1>&2
+                               foreach txtfil in $(cat "${_dead}") ; do
+                                       rm -v "${txtfil}" 1>&2
+                               done
                fi
 
                # Cleanup tmpdir

Reply via email to