forked from kiss-community/kiss
kiss: Simplify list
This commit is contained in:
parent
47f402b162
commit
d1c809b28d
5
kiss
5
kiss
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user