#!/usr/bin/with-contenv bash if [ "$enableInvalidSeriesAutoCleaner" != "true" ]; then sleep infinity else echo "Waiting for Sonarr to startup..." sleep 20m fi echo "Starting Script...." for (( ; ; )); do let i++ bash /config/extended/scripts/InvalidSeriesAutoCleaner.bash echo "Script sleeping for 12 hours..." sleep 12h done exit $?