Remove empty directories

This commit is contained in:
0x1eef 2024-04-10 19:25:10 -03:00
parent 4e647bfbe4
commit 4875b7f47f

View file

@ -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}"