aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-03 09:17:32 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-03 09:17:32 +0000
commit46bc77983aa0415d5efcef520001072b74f82cbc (patch)
tree001eab0c3c2d35a6429f8fb9cbc56de49633d803
parenta885e89ebe87db5f8a4655f8e060887b57de77c8 (diff)
downloadcpt-46bc77983aa0415d5efcef520001072b74f82cbc.tar.gz
kiss: Simplify find
FossilOrigin-Name: be5c7ae644461ecf19fbb703b4d3d806745231146a237f84a208cc425c2d8d72
-rwxr-xr-xkiss5
1 files changed, 1 insertions, 4 deletions
diff --git a/kiss b/kiss
index 6312556..7664b79 100755
--- 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() {