mirror of
https://codeberg.org/kiss-community/repo
synced 2024-07-07 08:22:28 +00:00
puke: Simplify removal
This commit is contained in:
parent
fce1135e69
commit
7bc5cee716
10
puke
10
puke
|
@ -144,15 +144,7 @@ pkg_remove() {
|
||||||
while read -r file; do
|
while read -r file; do
|
||||||
[ "${file%/*}" = "/etc" ] && continue
|
[ "${file%/*}" = "/etc" ] && continue
|
||||||
|
|
||||||
path=$sys_dir$file
|
rm -d -- "$sys_dir$file" 2>/dev/null && log "Removed $file"
|
||||||
|
|
||||||
if [ -d "$path" ]; then
|
|
||||||
rmdir "$path" 2>/dev/null
|
|
||||||
else
|
|
||||||
rm -- "$path" || log "Failed to remove $file."
|
|
||||||
fi
|
|
||||||
|
|
||||||
[ "$?" = 0 ] && log "Removed $file"
|
|
||||||
done < "$sys_dir/$dbs_dir/$name/manifest"
|
done < "$sys_dir/$dbs_dir/$name/manifest"
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
0
repo/ca-certificates/build
Normal file → Executable file
0
repo/ca-certificates/build
Normal file → Executable file
0
repo/openssl/build
Normal file → Executable file
0
repo/openssl/build
Normal file → Executable file
Loading…
Reference in New Issue
Block a user