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
23e899f3
"README_ORIGIN.md" did not exist on "87ca9e99868d69403f75210ae59d3a7b5c6c4a39"
Commit
23e899f3
authored
Jun 20, 2024
by
Josh Yan
Browse files
skip os.removeAll() if PID does not exist
parent
fedf7163
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
gpu/assets.go
gpu/assets.go
+2
-0
No files found.
gpu/assets.go
View file @
23e899f3
...
...
@@ -87,6 +87,8 @@ func cleanupTmpDirs() {
}
}
else
{
slog
.
Debug
(
"failed to open ollama.pid"
,
"path"
,
d
,
"error"
,
err
)
// No pid, ignore this tmpdir
continue
}
err
=
os
.
RemoveAll
(
d
)
if
err
!=
nil
{
...
...
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