1.2 - Only run script if applicable...

This commit is contained in:
RandomNinjaAtk 2024-02-12 13:07:19 +00:00 committed by GitHub
parent 76e347e5c4
commit a14cecd5c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,10 +1,18 @@
#!/usr/bin/with-contenv bash
### Default values
scriptVersion="1.1"
scriptVersion="1.2"
scriptName="ARLChecker"
sleepInterval='24h'
### Import Settings
source /config/extended.conf
#### Import Functions
source /config/extended/functions
if [ "$dlClientSource" == "tidal" ]; then
log "Script is not enabled, enable by setting dlClientSource to \"deezer\" or \"both\" by modifying the \"/config/extended.conf\" config file..."
log "Sleeping (infinity)"
sleep infinity
fi
echo Starting ARL Token Check...
# run py script
@ -21,4 +29,4 @@ else
fi
echo ARL Token Check Complete. Sleeping for ${sleepInterval}.
sleep ${sleepInterval}
sleep ${sleepInterval}