kiss: Simplify list

This commit is contained in:
Dylan Araps 2020-02-03 11:21:22 +02:00
parent 47f402b162
commit d1c809b28d
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 1 additions and 4 deletions

5
kiss
View File

@ -141,10 +141,7 @@ pkg_list() {
# Loop over each package and print its name and version.
for pkg; do
[ -d "$pkg" ] || {
log "Package '$pkg' is not installed"
return 1
}
[ -d "$pkg" ] || { log "'$pkg' is not installed"; return 1; }
read -r version 2>/dev/null < "$pkg/version" || version=null
printf '%s\n' "$pkg $version"