mirror of
https://github.com/ollama/ollama.git
synced 2025-11-12 06:47:46 +01:00
Fix duplicate menus on update and exit on signals
Also fixes a few fit-and-finish items for better developer experience
This commit is contained in:
@@ -31,11 +31,15 @@ func getCLIFullPath(command string) string {
|
||||
return cmdPath
|
||||
}
|
||||
}
|
||||
cmdPath = filepath.Join(".", command)
|
||||
_, err = os.Stat(cmdPath)
|
||||
pwd, err := os.Getwd()
|
||||
if err == nil {
|
||||
return cmdPath
|
||||
cmdPath = filepath.Join(pwd, command)
|
||||
_, err = os.Stat(cmdPath)
|
||||
if err == nil {
|
||||
return cmdPath
|
||||
}
|
||||
}
|
||||
|
||||
return command
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user