add envcheck (names only, no values)

This commit is contained in:
2025-10-30 18:44:52 +00:00
parent e2f2895719
commit 6d9e311be4

7
bin/envcheck.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
# Print which of the relay vars are set, WITHOUT printing their values. Handy
# when a script dies with ":? not set" and you cannot tell which one.
for v in RELAY_ENDPOINT RELAY_USER RELAY_TOKEN CONTAINMENT_CODE; do
eval "val=\${$v:-}"
if [ -n "$val" ]; then echo "$v: set"; else echo "$v: MISSING"; fi
done