From b7fe44be1525a7f54c085d8e997b5c2b32dde38b Mon Sep 17 00:00:00 2001 From: david_williams <david_williams> Date: Sat, 12 Feb 2011 20:18:22 +0000 Subject: [PATCH] improve daily cleanup scripts --- releng.control/removeUtils.shsource | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/releng.control/removeUtils.shsource b/releng.control/removeUtils.shsource index e4b98d031..be945a164 100644 --- a/releng.control/removeUtils.shsource +++ b/releng.control/removeUtils.shsource @@ -30,7 +30,7 @@ function removeIf () echo "WARNING: rc: " $rc " could not remove " $foundDirectory; fi - return rc; + return $rc; } # function that can remove a directory (e.g. via find) but checks to make sure not to remove the last one (or, last 'saveAtLeast') @@ -90,6 +90,6 @@ function removeArtifactsDirIf () echo "WARNING: rc: " $rc ". could not remove " $foundDirectory; fi - return rc; + return $rc; } -- GitLab