From 57b3681eb0d234fd711f900b8e7c14d22fceb3fb Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Sat, 29 Jul 2023 11:41:29 -0400 Subject: [PATCH] Only download naming.json if it does not exist. #42 - Resolves this request --- radarr/setup.bash | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/radarr/setup.bash b/radarr/setup.bash index a2731e6..dfb6842 100644 --- a/radarr/setup.bash +++ b/radarr/setup.bash @@ -66,9 +66,12 @@ echo "Download Script Functions..." curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/universal/functions.bash -o /config/extended/functions echo "Done" -echo "Download Naming script..." -curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/radarr/naming.json -o /config/extended/naming.json -echo "Done" + +if [ ! -f /config/extended/naming.json ]; then + echo "Download Naming script..." + curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/radarr/naming.json -o /config/extended/naming.json + echo "Done" +fi mkdir -p /config/extended echo "Download PlexNotify script..."