Skip to content

Commit a14cecd

Browse files
1.2 - Only run script if applicable...
1 parent 76e347e commit a14cecd

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lidarr/ARLChecker

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
#!/usr/bin/with-contenv bash
22
### Default values
3-
scriptVersion="1.1"
3+
scriptVersion="1.2"
44
scriptName="ARLChecker"
55
sleepInterval='24h'
66
### Import Settings
77
source /config/extended.conf
8+
#### Import Functions
9+
source /config/extended/functions
10+
11+
if [ "$dlClientSource" == "tidal" ]; then
12+
log "Script is not enabled, enable by setting dlClientSource to \"deezer\" or \"both\" by modifying the \"/config/extended.conf\" config file..."
13+
log "Sleeping (infinity)"
14+
sleep infinity
15+
fi
816

917
echo Starting ARL Token Check...
1018
# run py script
@@ -21,4 +29,4 @@ else
2129
fi
2230

2331
echo ARL Token Check Complete. Sleeping for ${sleepInterval}.
24-
sleep ${sleepInterval}
32+
sleep ${sleepInterval}

0 commit comments

Comments
 (0)