From b984d417c204cf490f2e11488451f946c5326264 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Wed, 15 Jun 2022 13:47:29 -0400 Subject: [PATCH] bugfix for bugfix... --- root/scripts/download.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/root/scripts/download.sh b/root/scripts/download.sh index c5be08b..cc04753 100644 --- a/root/scripts/download.sh +++ b/root/scripts/download.sh @@ -1,5 +1,10 @@ #!/usr/bin/with-contenv bash -lidarrUrlBase="/$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" +lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" +if [ "$lidarrUrlBase" = "null" ]; then + lidarrUrlBase="" +else + lidarrUrlBase="/$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" +fi lidarrApiKey="$(cat /config/config.xml | xq | jq -r .Config.ApiKey)" lidarrUrl="http://127.0.0.1:8686${lidarrUrlBase}" agent="lidarr-extended ( https://github.com/RandomNinjaAtk/docker-lidarr-extended )"