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:18:12 +03:00
parent 6b8ba6f5a2
commit 550a88ce47

1
puke
View File

@ -166,7 +166,6 @@ pkg_list() {
[ "$1" ] && { [ -d "$sys_dir/$dbs_dir/$1" ]; return "$?"; }
for pkg in "$sys_dir/$dbs_dir/"*; do
[ -d "$pkg" ] || continue
read -r version release < "$pkg/version"
printf '%s\n' "${pkg##*/} $version-$release"
done