forked from kiss-community/kiss
kiss: small changes to pkg_find
This commit is contained in:
parent
d9c8725169
commit
35d97853de
8
kiss
8
kiss
@ -131,13 +131,13 @@ pkg_find() {
|
||||
|
||||
set --
|
||||
|
||||
# shellcheck disable=2086
|
||||
# Globbing disabled for KISS_PATH word-splitting
|
||||
for path in $KISS_PATH "${what:-"$sys_db"}"; do
|
||||
set +f
|
||||
|
||||
for path2 in "$path/"$query; do
|
||||
test "${what:--d}" "$path2" || continue
|
||||
|
||||
# Globbing enabled for search.
|
||||
for path2 in "$path/"${query%%/*}; do
|
||||
test "${what:--d}" "$path2" &&
|
||||
set -f -- "$@" "$path2"
|
||||
done
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user