repos are now parsed from pacman.conf
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user