update-third-party: remove empty directories as well

The `git ls-files | xargs rm` removes only files; directories which are
empty are left laying around. This later chokes the `mv` which puts the
"reduced" directory into place. Remove the empty directories as well.
This commit is contained in:
Ben Boeckel 2016-02-02 14:23:24 -05:00 committed by Brad King
parent b19bc31277
commit afac3d107d
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ if [ -n "$basehash" ]; then
# Clear out the working tree
pushd "$extractdir"
git ls-files | xargs rm -v
find . -type d -empty -delete
popd
else
# Create a repo to hold this package's history