From 09f48044aaad1ad578d78bb902aaf8e0e3727d79 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 5 Jul 2021 12:25:06 +0300 Subject: [PATCH] kiss: use unique variable names for loops in pkg_find --- kiss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kiss b/kiss index c02b000..315ab5e 100755 --- a/kiss +++ b/kiss @@ -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