kiss: Revert recent pkg_clean() changes

This commit is contained in:
Dylan Araps 2020-05-12 10:08:54 +03:00
parent a6da44f5d3
commit 670ecb5ea9
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 2 additions and 3 deletions

5
kiss
View File

@ -1454,11 +1454,10 @@ pkg_clean() {
# Go through the cache and add any entries which don't belong
# to a currently running kiss instance.
for dir in "$cac_dir/"[bep]*-[0-9]*; do
[ -e "/proc/${dir##*-}" ] && continue
[ -e "$dir" ] && set -- "$@" "$dir"
[ -e "/proc/${dir##*-}" ] || set -- "$@" "$dir"
done
rm -rf -- "$@" >/dev/null 2>&1 ||:
rm -rf -- "$@"
}
args() {