Trim whitespace from .env values to ensure proper secret generation

This commit is contained in:
Kelin
2026-02-02 13:52:28 -05:00
parent 4fd30340ef
commit 80b44f8bef

View File

@@ -84,8 +84,8 @@ load_env_file_safely() {
value="${BASH_REMATCH[1]}"
fi
# Export the variable
export "$key"="$value"
# Trim whitespace from value
value=$(echo "$value" | xargs)
debug_log "Exported $key=[HIDDEN]" # Don't log actual values for security
fi
done < "$env_file"