mirror of
https://github.com/likelovewant/ollama-for-amd.git
synced 2025-12-21 22:33:56 +00:00
skip os.removeAll() if PID does not exist
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user