From ab8c93b36f638c65e027a9bd6b9594934fba73d8 Mon Sep 17 00:00:00 2001 From: Eduard T Date: Mon, 27 May 2024 16:51:30 -0500 Subject: [PATCH] Better variable naming. --- pkgrecover.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgrecover.sh b/pkgrecover.sh index f679f4a..48dcaa6 100644 --- a/pkgrecover.sh +++ b/pkgrecover.sh @@ -37,9 +37,9 @@ using_pacman_db() { matching_packages=() # Find the common elements between the two arrays - for dir in "${modified_db_dirs[@]}"; do + for db_dir in "${modified_db_dirs[@]}"; do for pkg in "${installed_packages[@]}"; do - if [[ "$dir" == $pkg-* ]]; then + if [[ "$db_dir" == $pkg-* ]]; then matching_packages+=("$pkg") fi done