From 133dcf36079ca42562bd73102c252afad883abb0 Mon Sep 17 00:00:00 2001 From: david_williams <david_williams> Date: Thu, 6 Mar 2008 22:50:05 +0000 Subject: [PATCH] minor cleanup --- releng.control/cleanupArtifacts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/releng.control/cleanupArtifacts.sh b/releng.control/cleanupArtifacts.sh index 098123093..d3c7062b1 100644 --- a/releng.control/cleanupArtifacts.sh +++ b/releng.control/cleanupArtifacts.sh @@ -7,7 +7,7 @@ if [ -z $BUILD_INITIALIZED ] then source commonVariations.shsource - source ${BUILD_HOME}/releng.control/commonComputedVariables.shsource + source ${RELENG_CONTROL}/commonComputedVariables.shsource fi # remove artifacts over n days old @@ -32,7 +32,7 @@ echo " number of directories before cleaning: ${before}"; # empty directories often result from "bad builds". We remove those no matter how old find ${artifactsDir} -mindepth 2 -maxdepth 3 -type d -empty -exec rm -fr '{}' \; # now remove old ones -find ${artifactsDir} -mindepth 2 -maxdepth 2 -ctime +$ndays -execdir ${BUILD_HOME}/releng.control/removeIf.sh '{}' \; +find ${artifactsDir} -mindepth 2 -maxdepth 2 -ctime +$ndays -execdir ${RELENG_CONTROL}/removeIf.sh '{}' \; after=`find ${artifactsDir} -mindepth 2 -maxdepth 2 | wc -l`; echo " number of directories after cleaning: ${after}"; -- GitLab