Skip to content
Snippets Groups Projects
Commit 133dcf36 authored by david_williams's avatar david_williams
Browse files

minor cleanup

parent 241293fe
No related branches found
No related tags found
No related merge requests found
......@@ -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}";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment