Update check.sh

pull/342/head
Muhammad Atif Ali 5 months ago committed by GitHub
parent 33e4ba88a4
commit e449943e71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2,6 +2,21 @@
set -o pipefail
set -u
# List of required environment variables
required_vars=(
"INSTATUS_API_KEY"
"INSTATUS_PAGE_ID"
"INSTATUS_COMPONENT_ID"
)
# Check if each required variable is set
for var in "${required_vars[@]}"; do
if [[ -z "${!var:-}" ]]; then
echo "Error: Environment variable '$var' is not set."
exit 1
fi
done
REGISTRY_BASE_URL="${REGISTRY_BASE_URL:-https://registry.coder.com}"
status=0

Loading…
Cancel
Save