From 9593eec8477e7f60c23b1a9e26094f9d58f5a456 Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Mon, 3 Jul 2023 12:35:19 +0300 Subject: [PATCH] Fix for possibly undefined variable in CI script --- schutzbot/slack_notification.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schutzbot/slack_notification.sh b/schutzbot/slack_notification.sh index e5466402b..998345876 100755 --- a/schutzbot/slack_notification.sh +++ b/schutzbot/slack_notification.sh @@ -2,7 +2,7 @@ set -eux -if [ -z "$SLACK_WEBHOOK_URL" ]; then +if [ -z "${SLACK_WEBHOOK_URL:-}" ]; then echo "INFO: Variable SLACK_WEBHOOK_URL is undefined" exit 0 fi