From 6882433c77133e2fa2a4a28bc4316c1614fd3228 Mon Sep 17 00:00:00 2001 From: Matthias Puchstein Date: Wed, 21 May 2025 03:50:51 +0200 Subject: [PATCH] repos are now parsed from pacman.conf --- scripts/alhp-check.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/alhp-check.sh b/scripts/alhp-check.sh index 0616ea2..97aa12e 100644 --- a/scripts/alhp-check.sh +++ b/scripts/alhp-check.sh @@ -1,7 +1,7 @@ #!/usr/bin/bash updatesAvailable() { - repos=("core-x86-64-v3" "extra-x86-64-v3" "multilib-x86-64-v3") + repos=$(grep '^\[' /etc/pacman.conf | sed -e 's/[][]//g' | grep -E 'x86-64-v[2-4]') output_json=false check_pkg="" @@ -22,7 +22,7 @@ updatesAvailable() { declare -A pkgs - yay -Sl "${repos[@]}" | while read -r _ name version status; do + pacman -Sl "${repos[@]}" | while read -r _ name version status; do if [[ $status == *installed* ]]; then pkgs["$name"]=1 fi