cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit d1c809b28de580ca57eb060e50c95fb8c56a6bae
parent 47f402b1621f16f41258c3713e82a584484b8af8
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Mon,  3 Feb 2020 11:21:22 +0200

kiss: Simplify list

Diffstat:
Mkiss | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git 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"