[refs #90] fix deleting empty dir
This commit is contained in:
parent
56e9174045
commit
1007e2c476
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue