From 3140259fc68952355b62a364a97527003adaf1fe Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Tue, 26 Nov 2024 07:05:24 +0100 Subject: [PATCH] banIP: update 1.0.1-2 * correctly parse json objects with hyphens in the autodetection function Signed-off-by: Dirk Brenken --- net/banip/Makefile | 2 +- net/banip/files/banip-functions.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/banip/Makefile b/net/banip/Makefile index 8849cc9443..62107c58c5 100644 --- a/net/banip/Makefile +++ b/net/banip/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=banip PKG_VERSION:=1.0.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_LICENSE:=GPL-3.0-or-later PKG_MAINTAINER:=Dirk Brenken diff --git a/net/banip/files/banip-functions.sh b/net/banip/files/banip-functions.sh index cc722118f5..71f9e57237 100644 --- a/net/banip/files/banip-functions.sh +++ b/net/banip/files/banip-functions.sh @@ -362,7 +362,7 @@ f_getfetch() { if { [ "${ban_autodetect}" = "1" ] && [ -z "${ban_fetchcmd}" ]; } || [ ! -x "${ban_fetchcmd}" ]; then utils="aria2 curl wget-ssl libustream-openssl libustream-wolfssl libustream-mbedtls" for util in ${utils}; do - if printf "%s" "${ban_packages}" | "${ban_jsoncmd}" -ql1 -e "@.packages.${util}" >/dev/null 2>&1; then + if printf "%s" "${ban_packages}" | "${ban_jsoncmd}" -ql1 -e "@.packages[\"${util}\"]" >/dev/null 2>&1; then case "${util}" in "aria2") util="aria2c" -- 2.30.2