From e94c407da8f9c3970eba20f7a0b67b82b76f7be2 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Sat, 29 Jul 2023 11:44:15 -0400 Subject: [PATCH] Only download naming.json if it does not exist #42 - Resolves this request --- sonarr/setup.bash | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sonarr/setup.bash b/sonarr/setup.bash index 3d96fcb..8e67fcd 100644 --- a/sonarr/setup.bash +++ b/sonarr/setup.bash @@ -66,9 +66,11 @@ curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/sonarr/Yo echo "Done" mkdir -p /config/extended -echo "Download Naming script..." -curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/sonarr/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/sonarr/naming.json -o /config/extended/naming.json + echo "Done" +fi mkdir -p /config/extended echo "Download Script Functions..."