Bugfix - after introducing new cache system based on Git releases, key also contains subfolder (#4066)

This commit is contained in:
Igor Pečovnik
2022-08-12 20:28:29 +02:00
committed by GitHub
parent 0cf80ac45d
commit 23e4710bdd

View File

@@ -1624,7 +1624,7 @@ function webseed ()
unset text
local CCODE=$(curl -s redirect.armbian.com/geoip | jq '.continent.code' -r)
if [[ "$2" == "rootfs" ]]; then
if [[ "$2" == rootfs* ]]; then
WEBSEED=($(curl -s ${1}mirrors | jq -r '.'${CCODE}' | .[] | values'))
else
WEBSEED=($(curl -s https://redirect.armbian.com/mirrors | jq -r '.'${CCODE}' | .[] | values'))