Allow to specify config file when doing setup

This commit is contained in:
Eugene Rakhmatulin
2026-03-28 14:55:31 -07:00
parent d37217bad0
commit 47f5f931b5

View File

@@ -15,7 +15,8 @@ load_env_if_exists() {
fi fi
# Validate config file exists if explicitly specified # Validate config file exists if explicitly specified
if [[ "$config_explicit" == "true" ]] && [[ ! -f "$env_file" ]]; then # Exception: if --setup is also specified, the file will be created by the setup procedure
if [[ "$config_explicit" == "true" ]] && [[ ! -f "$env_file" ]] && [[ "${FORCE_DISCOVER:-false}" != "true" ]]; then
echo "Error: Config file not found: $env_file" echo "Error: Config file not found: $env_file"
exit 1 exit 1
fi fi