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