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