#!/bin/bash # Start Ollama and capture its output export OLLAMA_URL=$(ollama start 2>&1 | grep -oP 'http://localhost:\d+') echo "Ollama URL: $OLLAMA_URL"