forked from kiss-community/kiss
kiss: Simplify find
This commit is contained in:
parent
767e414447
commit
47f402b162
5
kiss
5
kiss
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user