Fix read credentials for ccm service

This commit is contained in:
世界 committed 2026-01-17 05:46:24 +08:00
1 parent 0f5cda4169
commit 1c4614318e
3 files changed
+9 -2

No files matched your search

+3
View File
@@ -32,6 +32,9 @@ func getRealUser() (*user.User, error) {
}
func getDefaultCredentialsPath() (string, error) {
if configDir := os.Getenv("CLAUDE_CONFIG_DIR"); configDir != "" {
return filepath.Join(configDir, ".credentials.json"), nil
}
userInfo, err := getRealUser()
if err != nil {
return "", err