mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-21 23:00:06 -07:00
puke: Simplify removal
This commit is contained in:
parent
c5a09feb10
commit
fe80c29876
4
puke
4
puke
@ -145,13 +145,11 @@ pkg_remove() {
|
||||
if [ "${file%/*}" = "/etc" ]; then
|
||||
continue
|
||||
elif [ -d "$sys_dir$file" ]; then
|
||||
rmdir "$sys_dir$file" 2>/dev/null
|
||||
rmdir "$sys_dir$file" 2>/dev/null ||:
|
||||
else
|
||||
rm -- "$sys_dir$file" || log "Failed to remove $file."
|
||||
fi && log "Removed $file"
|
||||
done < "$sys_dir/$dbs_dir/$name/manifest"
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
pkg_updates() {
|
||||
|
Loading…
Reference in New Issue
Block a user