summaryrefslogtreecommitdiff
path: root/archweb.inc.sh
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2017-05-22 12:49:08 -0400
committerDave Reisner <dreisner@archlinux.org>2017-05-23 15:34:30 -0400
commitaef1401ad4bf3c4c5f5020c548b39802809f6261 (patch)
treebd2fe57685b32ec9c311dde591174684cb82a9ea /archweb.inc.sh
parent375b035ee2a50262c8ae429e8825ec6a77c36086 (diff)
downloadasp32-aef1401ad4bf3c4c5f5020c548b39802809f6261.tar.xz
always preserve exit statuses on return
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"
}