summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-02-17 16:17:02 +0100
committerHolger Levsen <holger@layer-acht.org>2016-02-17 16:17:02 +0100
commit0041c9afbfc52ba49997cd765cae412912d2b69b (patch)
treec4e481984a28b16a34091aa663ba814309aef241 /bin
parentffdfe345cda13b9eeae9e2924b13cf096716f4e6 (diff)
downloadjenkins.debian.net-0041c9afbfc52ba49997cd765cae412912d2b69b.tar.xz
reproducible maintenance: add mtime restriction to the 2nd group too
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_maintenance.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index eb5769a6..0a5f4c79 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -116,11 +116,11 @@ set -e
# delete old temp directories
echo "$(date -u) - Deleting temp directories, older than 2 days."
-OLDSTUFF=$(find $REP_RESULTS -maxdepth 1 -type d -mtime +1 -name "tmp.*" -o -name "rbuild*" -exec ls -lad {} \; || true)
+OLDSTUFF=$(find $REP_RESULTS -maxdepth 1 -type d -mtime +1 -name "tmp.*" -o -mtime +1 -name "rbuild*" -exec ls -lad {} \; || true)
if [ ! -z "$OLDSTUFF" ] ; then
echo
echo "Old temp directories found in $REP_RESULTS"
- find $REP_RESULTS -maxdepth 1 -type d -mtime +1 -name "tmp.*" -o -name "rbuild*" -exec rm -rv {} \; || true
+ find $REP_RESULTS -maxdepth 1 -type d -mtime +1 -name "tmp.*" -o -mtime +1 -name "rbuild*" -exec rm -rv {} \; || true
echo "These old directories have been deleted."
echo
DIRTY=true