From: Nikolay Manev Date: Tue, 29 Apr 2025 20:34:11 +0000 (+0300) Subject: adblock-fast: Fixed non-printable characters and bump PKG_VERSION X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=3d9eb08f8e4c63b7f5d6c057f8d5f7e54ba4158e;p=openwrt-packages.git adblock-fast: Fixed non-printable characters and bump PKG_VERSION Signed-off-by: Nikolay Manev --- diff --git a/net/adblock-fast/Makefile b/net/adblock-fast/Makefile index f3f5c19ba..d30cbc811 100644 --- a/net/adblock-fast/Makefile +++ b/net/adblock-fast/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=adblock-fast PKG_VERSION:=1.1.3 -PKG_RELEASE:=9 +PKG_RELEASE:=10 PKG_MAINTAINER:=Stan Grishin PKG_LICENSE:=AGPL-3.0-or-later diff --git a/net/adblock-fast/files/etc/init.d/adblock-fast b/net/adblock-fast/files/etc/init.d/adblock-fast index c7cd6923f..24be72cfa 100755 --- a/net/adblock-fast/files/etc/init.d/adblock-fast +++ b/net/adblock-fast/files/etc/init.d/adblock-fast @@ -469,7 +469,8 @@ get_url_filesize() { is_present 'curl' || return 0 size_command='curl --silent --insecure --fail --head --request GET' # size="$($size_command "$url" | grep -Po '^[cC]ontent-[lL]ength: \K\w+')" - size="$($size_command "$url" | grep -Eo '^[cC]ontent-[lL]ength: (.*)' | awk '{print $2}')" +# shellcheck disable=SC1017 + size="$($size_command "$url" | awk -F": " '{IGNORECASE=1}/content-length/ {gsub(/\r/, ""); print $2}' )" # shellcheck disable=SC3037 echo -en "$size" }