Fix for possibly undefined variable in CI script

This commit is contained in:
Alexander Todorov 2023-07-03 12:35:19 +03:00 committed by Ondřej Budai
parent 7fa81a514f
commit 9593eec847

View file

@ -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