kiss: Simplify find

This commit is contained in:
Dylan Araps 2020-02-03 11:17:32 +02:00
parent 767e414447
commit 47f402b162
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

5
kiss
View File

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