diff options
author | Dave Reisner <dreisner@archlinux.org> | 2017-05-22 12:49:08 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2017-05-23 15:34:30 -0400 |
commit | aef1401ad4bf3c4c5f5020c548b39802809f6261 (patch) | |
tree | bd2fe57685b32ec9c311dde591174684cb82a9ea /archweb.inc.sh | |
parent | 375b035ee2a50262c8ae429e8825ec6a77c36086 (diff) | |
download | asp32-aef1401ad4bf3c4c5f5020c548b39802809f6261.tar.xz |
always preserve exit statuses on return
Diffstat (limited to 'archweb.inc.sh')
-rw-r--r-- | archweb.inc.sh | 2 |
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" } |