2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-04 15:02:27 +00:00

puke: Simplify removal

This commit is contained in:
Dylan Araps 2019-05-13 17:02:09 +03:00
parent fce1135e69
commit 7bc5cee716
3 changed files with 1 additions and 9 deletions

10
puke
View File

@ -144,15 +144,7 @@ pkg_remove() {
while read -r file; do
[ "${file%/*}" = "/etc" ] && continue
path=$sys_dir$file
if [ -d "$path" ]; then
rmdir "$path" 2>/dev/null
else
rm -- "$path" || log "Failed to remove $file."
fi
[ "$?" = 0 ] && log "Removed $file"
rm -d -- "$sys_dir$file" 2>/dev/null && log "Removed $file"
done < "$sys_dir/$dbs_dir/$name/manifest"
return 0

0
repo/ca-certificates/build Normal file → Executable file
View File

0
repo/openssl/build Normal file → Executable file
View File