From afac3d107d7a12e6a6e425a446787d817fd2fe25 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 2 Feb 2016 14:23:24 -0500 Subject: [PATCH] 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. --- Utilities/Scripts/update-third-party.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/Utilities/Scripts/update-third-party.bash b/Utilities/Scripts/update-third-party.bash index 8925296cb..d4d346c96 100644 --- a/Utilities/Scripts/update-third-party.bash +++ b/Utilities/Scripts/update-third-party.bash @@ -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