2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-22 07:10:16 -07:00

puke: cleanup

This commit is contained in:
Dylan Araps 2019-05-14 22:31:44 +03:00
parent 08eb5ec81d
commit 5843709c7b

6
puke
View File

@ -137,9 +137,9 @@ pkg_remove() {
pkg_list "$name" || return 1 pkg_list "$name" || return 1
while read -r file; do while read -r file; do
if [ "${file%/*}" = "/etc" ]; then [ "${file%/*}" = "/etc" ] && continue
continue
elif [ -d "$sys_dir$file" ]; then if [ -d "$sys_dir$file" ]; then
rmdir "$sys_dir$file" 2>/dev/null || continue rmdir "$sys_dir$file" 2>/dev/null || continue
else else
rm -- "$sys_dir$file" || log "Failed to remove $file." rm -- "$sys_dir$file" || log "Failed to remove $file."