2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-21 23:00:06 -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
while read -r file; do
if [ "${file%/*}" = "/etc" ]; then
continue
elif [ -d "$sys_dir$file" ]; then
[ "${file%/*}" = "/etc" ] && continue
if [ -d "$sys_dir$file" ]; then
rmdir "$sys_dir$file" 2>/dev/null || continue
else
rm -- "$sys_dir$file" || log "Failed to remove $file."