aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-03 09:21:22 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-03 09:21:22 +0000
commit67000693070587e57c79b71ff79be7b80772a623 (patch)
tree7232c1551b7075c26ca0191d581584d0eaa1b3ea /kiss
parent46bc77983aa0415d5efcef520001072b74f82cbc (diff)
downloadcpt-67000693070587e57c79b71ff79be7b80772a623.tar.gz
kiss: Simplify list
FossilOrigin-Name: 4184bbab8e6def15c8d7807e31b707d4d17e0b925b98cbb065b7c91e69453dbe
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss5
1 files changed, 1 insertions, 4 deletions
diff --git a/kiss b/kiss
index 7664b79..136ee50 100755
--- a/kiss
+++ b/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"