kiss: Fix issue with multiple repositories.

This commit is contained in:
Dylan Araps 2019-06-23 16:44:29 +03:00
parent 6bb9bfd7bb
commit 469c29f7f7

3
kiss
View File

@ -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() {