[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] maintenance/d-i: fix `find` call to not fail job if, for some very odd reason, ...
Mattia Rizzolo
gitlab at salsa.debian.org
Mon Jan 18 00:08:24 GMT 2021
Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net
Commits:
8eedd8da by Mattia Rizzolo at 2021-01-18T01:07:41+01:00
maintenance/d-i: fix `find` call to not fail job if, for some very odd reason, there are no old directories around
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
- - - - -
1 changed file:
- bin/maintenance.sh
Changes:
=====================================
bin/maintenance.sh
=====================================
@@ -61,7 +61,7 @@ remove_old_rebootstrap_logs() {
remove_old_d-i_manual_builds() {
local OLDSTUFF
# delete builds of d-i manual
- OLDSTUFF=$(find /srv/d-i/d-i-manual-???? -maxdepth 0 -mtime +3 -exec rm -r {} \;)
+ OLDSTUFF=$(find /srv/d-i/ -maxdepth 1 -name "d-i-manual-????" -mtime +3 -exec rm -r {} \;)
if [ ! -z "$OLDSTUFF" ] ; then
echo "Old builds of d-i manuals have been deleted:"
echo
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/8eedd8da391d9fb791f363a63c36e8e0b1a718ec
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/8eedd8da391d9fb791f363a63c36e8e0b1a718ec
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20210118/1e98ea0e/attachment.html>
More information about the Qa-jenkins-scm
mailing list