From aef1401ad4bf3c4c5f5020c548b39802809f6261 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 22 May 2017 12:49:08 -0400 Subject: always preserve exit statuses on return --- archweb.inc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archweb.inc.sh') 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" } -- cgit v1.2.3-54-g00ecf