[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`
|
`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
|
||||||
|
|
Loading…
Reference in New Issue