Update update-ngxblocker - added check_depends to check_version

update-ngxblocker -v didn't work as check_version was called without 'check_depends' and didn't get all binaries / paths.
This commit is contained in:
Danilo Godec 2024-08-06 07:58:26 +02:00 committed by GitHub
parent 0c79b5e32c
commit b980dc5f69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -91,6 +91,8 @@ check_version() {
local remote_ver= remote_date= version= date= file=$CONF_DIR/globalblacklist.conf
local tmp=$(mktemp) url=$REPO/conf.d/globalblacklist.conf range="145-345"
check_depends
if [ -f $file ]; then
# local version
version=$(grep "Version:" $file | ${SED_CMD} 's|^.*: V||g')