Commit 17f8e7b6 authored by Ben Boeckel's avatar Ben Boeckel

update-common: 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.
parent ec1c09e8
......@@ -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
# Create a repo to hold this package's history
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment