From 1007e2c476d9d79576d1a58f0fcc519633d9b150 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Wed, 14 Nov 2012 22:46:09 +0600 Subject: [PATCH] [refs #90] fix deleting empty dir --- lib/tasks/pull_requests.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/pull_requests.rake b/lib/tasks/pull_requests.rake index 9a1c94081..ec8d1f2f3 100644 --- a/lib/tasks/pull_requests.rake +++ b/lib/tasks/pull_requests.rake @@ -8,8 +8,8 @@ namespace :pull_requests do `find -mindepth 2 -maxdepth 2 -type d -mtime +0 | xargs rm -rf` say '-----' say "Removing empty dir:" - say `find -mindepth 2 -maxdepth 2 -type d -empty` - `find -mindepth 2 -maxdepth 2 -type d -empty -delete` + say `find -maxdepth 2 -type d -empty` + `find -maxdepth 2 -type d -empty -delete` say 'done!' end end