Commit 50e87c66 authored by Bruce MacDonald's avatar Bruce MacDonald
Browse files

read from os executable

parent 76599436
...@@ -527,7 +527,11 @@ func RunServer(_ *cobra.Command, _ []string) error { ...@@ -527,7 +527,11 @@ func RunServer(_ *cobra.Command, _ []string) error {
} }
func startMacApp(client *api.Client) error { func startMacApp(client *api.Client) error {
link, err := os.Readlink("/usr/local/bin/ollama") exe, err := os.Executable()
if err != nil {
return err
}
link, err := os.Readlink(exe)
if err != nil { if err != nil {
return err return err
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment