forked from kiss-community/repo
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
|
||||
[ "${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
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