[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: maintenance: another -mindepth needed here
Mattia Rizzolo
mattia at debian.org
Thu Apr 5 15:33:34 UTC 2018
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository jenkins.debian.net.
commit 137f64b98762189fd3f0c385e3e7eb19d1c464bf
Author: Mattia Rizzolo <mattia at debian.org>
Date: Thu Apr 5 17:33:27 2018 +0200
reproducible: maintenance: another -mindepth needed here
for those hosts not actually using /schroot…
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
bin/reproducible_maintenance.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index 208f4bd..3082708 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -224,7 +224,7 @@ if [ ! -z "$OLDSTUFF" ]; then
OLDSTUFF=$(find "$dir" -mindepth 1 -maxdepth 1 -type d -mtime +2 -exec ls -lad {} \;)
if [ ! -z "$OLDSTUFF" ]; then
echo
- echo "Warning: Tried, but failed to remove these:"
+ echo "Warning: Tried, but failed to delete these:"
echo "$OLDSTUFF"
echo "Manual cleanup needed"
fi
@@ -254,7 +254,7 @@ fi
# find very old schroots
echo "$(date -u) - Detecting schroots older than 1 month"
-OLDSTUFF=$(find /schroots/ -maxdepth 1 -mtime +30 -exec ls -lad {} \;)
+OLDSTUFF=$(find /schroots/ -mindepth 1 -maxdepth 1 -mtime +30 -exec ls -lad {} \;)
if [ ! -z "$OLDSTUFF" ]; then
echo
echo "Warning: schroots older than 1 month found in /schroot:"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list