summaryrefslogtreecommitdiff
path: root/archweb.inc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'archweb.inc.sh')
-rw-r--r--archweb.inc.sh2
1 files changed, 1 insertions, 1 deletions
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"
}