diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2016-02-02 19:23:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-03-09 18:57:27 (GMT) |
commit | afac3d107d7a12e6a6e425a446787d817fd2fe25 (patch) | |
tree | 2b614e2113201783cb065d7d51667d85f50c3df6 /Utilities | |
parent | b19bc31277bb2e3dd75e78f64924be3955ea8c6d (diff) | |
download | CMake-afac3d107d7a12e6a6e425a446787d817fd2fe25.zip CMake-afac3d107d7a12e6a6e425a446787d817fd2fe25.tar.gz CMake-afac3d107d7a12e6a6e425a446787d817fd2fe25.tar.bz2 |
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.
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/Scripts/update-third-party.bash | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Utilities/Scripts/update-third-party.bash b/Utilities/Scripts/update-third-party.bash index 8925296..d4d346c 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 |