mirror of
https://github.com/ollama/ollama.git
synced 2025-12-01 08:09:10 +01:00
create .ollama directory if it doesnt exist
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user