From ca9916e4a8d752612cbc94f8d3b14135aed029b5 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sun, 14 Apr 2024 20:54:00 -0300 Subject: [PATCH] Update file removal in portzap-install --- libexec/portzap/portzap-install | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libexec/portzap/portzap-install b/libexec/portzap/portzap-install index 7529686..55c804c 100755 --- a/libexec/portzap/portzap-install +++ b/libexec/portzap/portzap-install @@ -20,9 +20,10 @@ perform_update() for file in ${del}; do target="${installdir}/${file}" parent=$(dirname "${target}") - printf "rm $(rm -vf ${target})" + echo "rm ${target}" + rm -f "${target}" 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 done for file in ${add}; do