mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-22 07:10:16 -07:00
puke: cleanup
This commit is contained in:
parent
08eb5ec81d
commit
5843709c7b
6
puke
6
puke
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user