v2.4 - Import settings during config verification

Allow config changes to take affect between script runs, to avoid requiring restart
This commit is contained in:
RandomNinjaAtk 2024-08-08 12:55:14 +00:00 committed by GitHub
parent 0e38188047
commit 8ca0cc83b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,5 @@
#!/usr/bin/with-contenv bash #!/usr/bin/with-contenv bash
scriptVersion="2.3" scriptVersion="2.4"
scriptName="AutoArtistAdder" scriptName="AutoArtistAdder"
### Import Settings ### Import Settings
@ -8,6 +8,8 @@ source /config/extended.conf
source /config/extended/functions source /config/extended/functions
verifyConfig () { verifyConfig () {
### Import Settings
source /config/extended.conf
if echo "$addDeezerTopArtists $addDeezerTopAlbumArtists $addDeezerTopTrackArtists $addRelatedArtists" | grep -i "true" | read; then if echo "$addDeezerTopArtists $addDeezerTopAlbumArtists $addDeezerTopTrackArtists $addRelatedArtists" | grep -i "true" | read; then
sleep 0.01 sleep 0.01