forked from kiss-community/kiss
kiss: Fix issue with multiple repositories.
This commit is contained in:
parent
6bb9bfd7bb
commit
469c29f7f7
3
kiss
3
kiss
@ -27,12 +27,13 @@ pkg_clean() {
|
|||||||
pkg_search() {
|
pkg_search() {
|
||||||
set -f
|
set -f
|
||||||
# shellcheck disable=2086,2046
|
# shellcheck disable=2086,2046
|
||||||
set -- "$1" $(IFS=: find $KISS_PATH -maxdepth 1 -name "$1")
|
set -- "$1" $(IFS=:; find $KISS_PATH -maxdepth 1 -name "$1")
|
||||||
set +f
|
set +f
|
||||||
|
|
||||||
[ -z "$2" ] && die "Package '$1' not in any repository."
|
[ -z "$2" ] && die "Package '$1' not in any repository."
|
||||||
|
|
||||||
rep_dir=${2%/$1}
|
rep_dir=${2%/$1}
|
||||||
|
log "Found '$1' in '$rep_dir'"
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_setup() {
|
pkg_setup() {
|
||||||
|
Loading…
Reference in New Issue
Block a user