2
0
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:
Dylan Araps 2019-05-13 17:10:33 +03:00
parent c5a09feb10
commit fe80c29876

4
puke
View File

@ -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() {