mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 02:16:36 +02:00
create .ollama
directory if it doesnt exist
This commit is contained in:
parent
148f0225c0
commit
1556162c90
2 changed files with 8 additions and 8 deletions
|
@ -63,11 +63,6 @@ func getAuthToken(redirData AuthRedirect, regOpts *RegistryOptions) (string, err
|
|||
|
||||
keyPath := path.Join(home, ".ollama", "id_ed25519")
|
||||
|
||||
err = os.MkdirAll(path.Dir(keyPath), 0700)
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("could not create .ollama directory %w", err)
|
||||
}
|
||||
|
||||
rawKey, err := os.ReadFile(keyPath)
|
||||
if err != nil {
|
||||
log.Printf("Failed to load private key: %v", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue