summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-09-16 11:04:12 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-09-16 11:04:12 -0400
commit4e8b010e6345f9322482765f71e603df073f4254 (patch)
treecbd9d8a1d97cedb504c1db75e4f705b2b622ada8
parentb29f79324d972b74cdae89e0467e9ba7c28f7edc (diff)
downloadbuild_tools-4e8b010e6345f9322482765f71e603df073f4254.zip
build_tools-4e8b010e6345f9322482765f71e603df073f4254.tar.gz
build_tools-4e8b010e6345f9322482765f71e603df073f4254.tar.xz
Convert local cleanup to use find -exec for consistency
-rwxr-xr-xsssd-nightly.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sssd-nightly.sh b/sssd-nightly.sh
index 488547a..df992ff 100755
--- a/sssd-nightly.sh
+++ b/sssd-nightly.sh
@@ -28,8 +28,8 @@ LOGFILE=/local/sgallagh/logs/nightly-$datestamp.log
echo "===== BUILD STARTED AT `date` =====" > $LOGFILE
echo "===== Cleaning old RPMS =====" > $LOGFILE
-rm -f `find /local/sgallagh/repos/f11 -type f -daystart -ctime +6|grep sssd-` || finish 98
-rm -f `find /local/sgallagh/repos/rhel5 -type f -daystart -ctime +6|grep sssd-` || finish 99
+find /local/sgallagh/repos/f11 -type f -daystart -ctime +6 -name "sssd-*" -exec rm -f {} \; || finish 98
+find /local/sgallagh/repos/rhel5 -type f -daystart -ctime +6 -name "sssd-*" -exec rm -f {} \; || finish 99
echo "===== CHECKING OUT CODE =====" >> $LOGFILE
rm -Rf sssd-$datestamp #Remove an incomplete previous run