diff --git a/releng.control/cleanupArtifacts.sh b/releng.control/cleanupArtifacts.sh index d68a3dfe784cd8262a1b5037698450089a1cb7ac..84e8355fd287f97af60d474cec03b724ca3a2edf 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