aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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() {