From 76b9c590fad647100b2f6036fc69dd89bf5ed230 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Sun, 9 Jul 2023 10:34:07 -0400 Subject: [PATCH] v1.2 cookies find bug fix --- sonarr/Extras.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sonarr/Extras.bash b/sonarr/Extras.bash index f0c793c..18538b7 100644 --- a/sonarr/Extras.bash +++ b/sonarr/Extras.bash @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.1" +scriptVersion="1.2" arrEventType="$sonarr_eventtype" arrItemId=$sonarr_series_id tmdbApiKey="3b7751e3179f796565d88fdb2fcdf426" @@ -78,8 +78,8 @@ fi DownloadExtras () { # Check for cookies file - if find /config -type f -iname "cookies.txt" | read; then - cookiesFile="$(find /config -type f -iname "cookies.txt" | head -n1)" + if [ -f /config/cookies.txt ]; then + cookiesFile="/config/cookies.txt" log "$itemTitle :: Cookies File Found!" else log "$itemTitle :: Cookies File Not Found!"