1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 00:20:05 -07:00

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() {
set -f
# 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
[ -z "$2" ] && die "Package '$1' not in any repository."
rep_dir=${2%/$1}
log "Found '$1' in '$rep_dir'"
}
pkg_setup() {