From 50cfbbf61328c639fda759b81f441c1578eae4ee Mon Sep 17 00:00:00 2001
From: david_williams <david_williams>
Date: Thu, 20 Dec 2007 03:36:19 +0000
Subject: [PATCH] initial cleanup task

---
 releng.control/cleanupArtifacts.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/releng.control/cleanupArtifacts.sh b/releng.control/cleanupArtifacts.sh
index d68a3dfe7..84e8355fd 100644
--- a/releng.control/cleanupArtifacts.sh
+++ b/releng.control/cleanupArtifacts.sh
@@ -18,9 +18,9 @@ n=4;
 
 echo "    Removing artifact directories older than $n days";
 echo "        number of directories before cleaning: ";
-find ./ -mindepth 2 -maxdepth 2 | wc -l
+find ${BUILD_HOME}/artifacts -mindepth 2 -maxdepth 2 | wc -l
 
-find ./ -mindepth 2 -maxdepth 2 -ctime +$n -exec rm -fr '{}' \;
+find ${BUILD_HOME}/artifacts -mindepth 2 -maxdepth 2 -ctime +$n -exec rm -fr '{}' \;
 
 echo "        number of directories after cleaning: ";
-find ./ -mindepth 2 -maxdepth 2 | wc -l
+find ${BUILD_HOME}/artifacts -mindepth 2 -maxdepth 2 | wc -l
-- 
GitLab