kiss: use unique variable names for loops in pkg_find

This commit is contained in:
Dylan Araps 2021-07-05 12:25:06 +03:00
parent bb9e508cc8
commit 09f48044aa
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
1 changed files with 3 additions and 3 deletions

6
kiss
View File

@ -187,9 +187,9 @@ pkg_find() {
# Iterate over KISS_PATH, grabbing all directories which match the query.
# Intentional.
# shellcheck disable=2086
for _p in $4 "${3:-$sys_db}"; do set +f
for _d in "$_p/"$1; do
test "${3:--d}" "$_d" && set -f -- "$@" "$_d"
for _find_path in $4 "${3:-$sys_db}"; do set +f
for _find_pkg in "$_find_path/"$1; do
test "${3:--d}" "$_find_pkg" && set -f -- "$@" "$_find_pkg"
done
done