2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-21 23:00:06 -07:00

puke: Simplify listing

This commit is contained in:
Dylan Araps 2019-05-13 17:14:34 +03:00
parent fe80c29876
commit 6b8ba6f5a2

4
puke
View File

@ -163,9 +163,7 @@ pkg_updates() {
}
pkg_list() {
[ "$1" ] && {
[ -d "$sys_dir/$dbs_dir/$1" ] || return 1 && return 0
}
[ "$1" ] && { [ -d "$sys_dir/$dbs_dir/$1" ]; return "$?"; }
for pkg in "$sys_dir/$dbs_dir/"*; do
[ -d "$pkg" ] || continue