Better variable naming.

This commit is contained in:
Eduard Tolosa 2024-05-27 16:51:30 -05:00
parent 768e9e228b
commit ab8c93b36f

View file

@ -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