cpt

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

commit 47f402b1621f16f41258c3713e82a584484b8af8
parent 767e4144476a6fd5de39f9e9a44f9a7e07736cfa
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Mon,  3 Feb 2020 11:17:32 +0200

kiss: Simplify find

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

diff --git a/kiss b/kiss @@ -115,10 +115,7 @@ pkg_find() { # Show all search results if called from 'kiss search', else # print only the first match. - case $match in - all) printf '%s\n' "$@" ;; - *) printf '%s\n' "$1" ;; - esac + [ "$match" ] && printf '%s\n' "$@" || printf '%s\n' "$1" } pkg_list() {