From 29d37ad9cdbb23a72ac97d3884f16ec1af2f9099 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 12 Jul 2022 12:48:11 +0000 Subject: [PATCH] v1.0.156 - bugfix for non existant cache dir --- root/scripts/download.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/root/scripts/download.sh b/root/scripts/download.sh index d592043..f20fec0 100644 --- a/root/scripts/download.sh +++ b/root/scripts/download.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.155" +scriptVersion="1.0.156" lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" if [ "$lidarrUrlBase" = "null" ]; then lidarrUrlBase="" @@ -420,6 +420,12 @@ TidalClientSetup () { log ":: TIDAL :: ERROR :: Loading client for required authentication, please authenticate, then exit the client..." tidal-dl fi + + if [ ! -d /config/extended/cache/tidal ]; then + mkdir -p /config/extended/cache/tidal + chmod 777 /config/extended/cache/tidal + chown abc:abc /config/extended/cache/tidal + fi if [ -d /config/extended/cache/tidal ]; then log ":: TIDAL :: Purging album list cache..."