Remove empty directories
This commit is contained in:
parent
4e647bfbe4
commit
4875b7f47f
1 changed files with 2 additions and 0 deletions
|
@ -19,7 +19,9 @@ perform_update()
|
|||
set -x
|
||||
for file in ${del}; do
|
||||
target="${installdir}/${file}"
|
||||
parent=$(dirname "${target}")
|
||||
rm "${target}"
|
||||
find "${parent}" -type d -maxdepth 0 -empty -exec rm -rf {} \;
|
||||
done
|
||||
for file in ${add}; do
|
||||
target="${installdir}/${file}"
|
||||
|
|
Loading…
Reference in a new issue