1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-23 15:40:07 -07:00

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

6
kiss
View File

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