[refs #90] fix deleting empty dir

This commit is contained in:
Alexander Machehin 2012-11-14 22:46:09 +06:00
parent 56e9174045
commit 1007e2c476
1 changed files with 2 additions and 2 deletions

View File

@ -8,8 +8,8 @@ namespace :pull_requests do
`find -mindepth 2 -maxdepth 2 -type d -mtime +0 | xargs rm -rf` `find -mindepth 2 -maxdepth 2 -type d -mtime +0 | xargs rm -rf`
say '-----' say '-----'
say "Removing empty dir:" say "Removing empty dir:"
say `find -mindepth 2 -maxdepth 2 -type d -empty` say `find -maxdepth 2 -type d -empty`
`find -mindepth 2 -maxdepth 2 -type d -empty -delete` `find -maxdepth 2 -type d -empty -delete`
say 'done!' say 'done!'
end end
end end