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
|
set -x
|
||||||
for file in ${del}; do
|
for file in ${del}; do
|
||||||
target="${installdir}/${file}"
|
target="${installdir}/${file}"
|
||||||
|
parent=$(dirname "${target}")
|
||||||
rm "${target}"
|
rm "${target}"
|
||||||
|
find "${parent}" -type d -maxdepth 0 -empty -exec rm -rf {} \;
|
||||||
done
|
done
|
||||||
for file in ${add}; do
|
for file in ${add}; do
|
||||||
target="${installdir}/${file}"
|
target="${installdir}/${file}"
|
||||||
|
|
Loading…
Reference in a new issue