From 35be40527907f9e29cc25bde56b41a3b3dd3fc2b Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 16 Jul 2021 14:59:23 +0300 Subject: [PATCH] misc: nit --- kiss | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/kiss b/kiss index 972e0d5..4485d29 100755 --- a/kiss +++ b/kiss @@ -234,22 +234,11 @@ pkg_find() { unset IFS # Show all search results if called from 'kiss search', else store the - # values in variables. + # values in variables. If there are 4 arguments, no package has been found. case $2-$# in - *-4) - # A package may also not be found due to a repository not being - # readable by the current user. Either way, we need to die here. - return 1 - ;; - - -*) - repo_dir=$5 - ;; - - *) - shift 4 - printf '%s\n' "$@"; - ;; + *-4) return 1 ;; + -*) repo_dir=$5 ;; + *) shift 4; printf '%s\n' "$@" esac }