index : asp32 | |
Archlinux32 fork of asp - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | archweb.inc.sh | 2 |
diff --git a/archweb.inc.sh b/archweb.inc.sh index b660c29..15f0442 100644 --- a/archweb.inc.sh +++ b/archweb.inc.sh @@ -3,7 +3,7 @@ archweb_get_pkgbase() { pkgbase=$(curl -s "https://www.archlinux.org/packages/search/json/?q=$1" | jq -r --arg pkgname "$1" 'limit(1; .results[] | select(.pkgname == $pkgname).pkgbase)') - [[ $pkgbase ]] || return 1 + [[ $pkgbase ]] || return printf '%s\n' "$pkgbase" } |