read from os executable
This commit is contained in:
parent
765994362c
commit
50e87c6691
1 changed files with 5 additions and 1 deletions
|
@ -527,7 +527,11 @@ func RunServer(_ *cobra.Command, _ []string) 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 {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue