Correct detection of missing APPRISE_URL
All checks were successful
Test Pull Request / Build Image (pull_request) Successful in 6m19s
Test Pull Request / Notify (pull_request) Successful in 3s

This commit is contained in:
MrMeeb 2024-05-30 19:55:39 +00:00
parent 222b8f86a4
commit 5bda2c1081

View File

@ -47,7 +47,7 @@ function better_exit {
} }
# Check APPRISE_URL is set if either NOTIFY_ON_SUCCESS or NOTIFY_ON_FAILURE are set # Check APPRISE_URL is set if either NOTIFY_ON_SUCCESS or NOTIFY_ON_FAILURE are set
if [ ! -z "${NOTIFY_ON_SUCCESS}" ] || [ ! -z "${NOTIFY_ON_FAILURE}" ] && [ -z "${APPRISE_URL}" ]; then if [ "${NOTIFY_ON_SUCCESS}" = "true" ] || [ "${NOTIFY_ON_FAILURE}" = "true" ] && [ -z "${APPRISE_URL}" ]; then
echo "You have notifications enabled but have not set APPRISE_URL. Please set APPRISE_URL and restart the container." echo "You have notifications enabled but have not set APPRISE_URL. Please set APPRISE_URL and restart the container."
better_exit better_exit