From 67000693070587e57c79b71ff79be7b80772a623 Mon Sep 17 00:00:00 2001 From: "dylan.araps@gmail.com" Date: Mon, 3 Feb 2020 09:21:22 +0000 Subject: kiss: Simplify list FossilOrigin-Name: 4184bbab8e6def15c8d7807e31b707d4d17e0b925b98cbb065b7c91e69453dbe --- kiss | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'kiss') 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" -- cgit v1.2.3