diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-02-03 09:21:22 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-02-03 09:21:22 +0000 |
commit | 67000693070587e57c79b71ff79be7b80772a623 (patch) | |
tree | 7232c1551b7075c26ca0191d581584d0eaa1b3ea /kiss | |
parent | 46bc77983aa0415d5efcef520001072b74f82cbc (diff) | |
download | cpt-67000693070587e57c79b71ff79be7b80772a623.tar.gz |
kiss: Simplify list
FossilOrigin-Name: 4184bbab8e6def15c8d7807e31b707d4d17e0b925b98cbb065b7c91e69453dbe
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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" |