Chore: Add env var check to make drone (#83337)

This commit is contained in:
Todd Treece
2024-02-23 14:28:30 -05:00
committed by GitHub
parent 2146f6ce1f
commit f4b432841b
2 changed files with 13 additions and 0 deletions

12
scripts/drone/env-var-check.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
# ensure DRONE_SERVER and DRONE_TOKEN env variables are set
if [ -z "$DRONE_SERVER" ]; then
echo "DRONE_SERVER environment variable is not set."
exit 1
fi
if [ -z "$DRONE_TOKEN" ]; then
echo "DRONE_TOKEN environment variable is not set."
exit 1
fi