v1.6 - logging optimizations

This commit is contained in:
RandomNinjaAtk 2023-07-19 14:38:31 +00:00 committed by GitHub
parent bbbfa803a9
commit 73277d5437
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
#!/usr/bin/with-contenv bash #!/usr/bin/with-contenv bash
scriptVersion="1.5" scriptVersion="1.6"
scriptName="AutoArtistAdder" scriptName="AutoArtistAdder"
log () { log () {
@ -17,7 +17,6 @@ logfileSetup () {
touch "/config/logs/AutoArtistAdder.txt" touch "/config/logs/AutoArtistAdder.txt"
chmod 666 "/config/logs/AutoArtistAdder.txt" chmod 666 "/config/logs/AutoArtistAdder.txt"
fi fi
exec &> >(tee -a "/config/logs/AutoArtistAdder.txt")
} }
verifyConfig () { verifyConfig () {
@ -330,6 +329,9 @@ AddTidalArtistToLidarr () {
} }
# Loop Script
logfileSetup
exec &> >(tee -a "/config/logs/AutoArtistAdder.txt")
# Loop Script # Loop Script
for (( ; ; )); do for (( ; ; )); do
let i++ let i++