From eecb11a423c8b23389d5d918ea16fd92b72fb449 Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Wed, 29 Nov 2023 13:49:36 +0300 Subject: [PATCH] cd to current dir in update script --- update.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/update.sh b/update.sh index 92a2cb9..5a17847 100755 --- a/update.sh +++ b/update.sh @@ -1,5 +1,6 @@ #!/bin/bash set -euxo pipefail; +cd "$(dirname "$0")" current=`curl 'https://gitea.neur0tx.site/api/v1/repos/xray-addons/geoip-geosite-with-ru-blocklist/releases/latest'` geoipUrl=`echo "$current" | jq -r '.assets | map( { (.name|tostring): . } ) | add | ."geoip.dat".browser_download_url'` geositeUrl=`echo "$current" | jq -r '.assets | map( { (.name|tostring): . } ) | add | ."geosite.dat".browser_download_url'`