for work with google sheets

This commit is contained in:
kr0sh512
2025-02-11 11:08:50 +03:00
parent b2db3a4b76
commit ab1272df70
5 changed files with 65 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
# List of environment variables to check
env_vars=("TG_ADMIN_ID" "TG_API_TOKEN" "DB_HOST" "DB_PORT" "DB_USER" "DB_PASSWORD" "DB_NAME")
for var in "${env_vars[@]}"; do
if [ -z "${!var}" ]; then
echo "Environment variable $var is not set or is empty."
exit 1
# else
# echo "Environment variable $var is set to '${!var}'."
fi
done
View File