mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-25 08:30:05 -07:00
misc: nit
This commit is contained in:
parent
b41a163101
commit
35be405279
19
kiss
19
kiss
@ -234,22 +234,11 @@ pkg_find() {
|
|||||||
unset IFS
|
unset IFS
|
||||||
|
|
||||||
# Show all search results if called from 'kiss search', else store the
|
# 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
|
case $2-$# in
|
||||||
*-4)
|
*-4) return 1 ;;
|
||||||
# A package may also not be found due to a repository not being
|
-*) repo_dir=$5 ;;
|
||||||
# readable by the current user. Either way, we need to die here.
|
*) shift 4; printf '%s\n' "$@"
|
||||||
return 1
|
|
||||||
;;
|
|
||||||
|
|
||||||
-*)
|
|
||||||
repo_dir=$5
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
shift 4
|
|
||||||
printf '%s\n' "$@";
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user