about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xrequests_examples.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/requests_examples.sh b/requests_examples.sh
index ada2497..585707f 100755
--- a/requests_examples.sh
+++ b/requests_examples.sh
@@ -1,5 +1,10 @@
 #!/bin/sh
 
+if [ -z "${FS_TRACER_API_KEY}" ]; then
+	echo "FS_TRACER_API_KEY is not set"
+	exit 1
+fi
+
 curl -H "API_KEY: ${FS_TRACER_API_KEY}" -X POST -d '
 [{
 	"timestamp": "2020-01-02T15:04:05Z",