Enhance .env file handling and validation in scripts

This commit is contained in:
Eugene Rakhmatulin
2026-03-25 23:16:56 -07:00
parent 8b7c02aa25
commit c2fe579ccc
3 changed files with 42 additions and 53 deletions

View File

@@ -159,9 +159,12 @@ done
# Set .env file path (use default if not specified)
if [[ -z "$CONFIG_FILE" ]]; then
CONFIG_FILE="$SCRIPT_DIR/.env"
CONFIG_FILE_SET=false
else
CONFIG_FILE_SET=true
fi
# Load .env file if exists
# Load .env file
if [[ -f "$CONFIG_FILE" ]]; then
echo "Loading configuration from .env file..."