diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-02-03 09:17:32 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-02-03 09:17:32 +0000 |
commit | 46bc77983aa0415d5efcef520001072b74f82cbc (patch) | |
tree | 001eab0c3c2d35a6429f8fb9cbc56de49633d803 | |
parent | a885e89ebe87db5f8a4655f8e060887b57de77c8 (diff) | |
download | cpt-46bc77983aa0415d5efcef520001072b74f82cbc.tar.gz |
kiss: Simplify find
FossilOrigin-Name: be5c7ae644461ecf19fbb703b4d3d806745231146a237f84a208cc425c2d8d72
-rwxr-xr-x | kiss | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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() { |