Update file removal in portzap-install

This commit is contained in:
0x1eef 2024-04-14 20:54:00 -03:00
parent ec01b20506
commit ca9916e4a8

View file

@ -20,9 +20,10 @@ perform_update()
for file in ${del}; do for file in ${del}; do
target="${installdir}/${file}" target="${installdir}/${file}"
parent=$(dirname "${target}") parent=$(dirname "${target}")
printf "rm $(rm -vf ${target})" echo "rm ${target}"
rm -f "${target}"
if [ -e "${parent}" ]; then if [ -e "${parent}" ]; then
find "${parent}" -type d -maxdepth 0 -empty -exec rm -vrf {} \; find "${parent}" -type d -maxdepth 0 -empty -exec rm -rf {} \;
fi fi
done done
for file in ${add}; do for file in ${add}; do