added some text to the readme
This commit is contained in:
@@ -6,7 +6,6 @@ updatesAvailable() {
|
||||
output_json=false
|
||||
check_pkg=""
|
||||
|
||||
# Parse arguments
|
||||
while [[ $# -gt 0 ]]; do
|
||||
case "$1" in
|
||||
-j|--json) output_json=true; shift ;;
|
||||
@@ -23,7 +22,6 @@ updatesAvailable() {
|
||||
|
||||
declare -A pkgs
|
||||
|
||||
# Collect installed packages
|
||||
yay -Sl "${repos[@]}" | while read -r _ name version status; do
|
||||
if [[ $status == *installed* ]]; then
|
||||
pkgs["$name"]=1
|
||||
@@ -34,7 +32,6 @@ updatesAvailable() {
|
||||
api_url="https://api.alhp.dev/packages?limit=0&offset=0&status=queued&status=building${repo_query}"
|
||||
|
||||
if [[ -n "$check_pkg" ]]; then
|
||||
# Check if a specific package is building
|
||||
building_pkgs=$(curl -s "$api_url" \
|
||||
| jq -r --arg pkg "$check_pkg" '.packages[] | select(.split_packages[] == $pkg) | .split_packages[]')
|
||||
|
||||
@@ -52,7 +49,6 @@ updatesAvailable() {
|
||||
fi
|
||||
|
||||
else
|
||||
# Full scan
|
||||
matches=()
|
||||
while read -r pkgname; do
|
||||
if [[ -n "${pkgs[$pkgname]}" ]]; then
|
||||
|
Reference in New Issue
Block a user