Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
50e87c66
Commit
50e87c66
authored
Aug 01, 2023
by
Bruce MacDonald
Browse files
read from os executable
parent
76599436
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
cmd/cmd.go
cmd/cmd.go
+5
-1
No files found.
cmd/cmd.go
View file @
50e87c66
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment