Commit ec02a1f52b

ec02a1f52bb729fcf1662e9267d4d3ed8cb5f559

parent: e9d51690d8

Unsigned

Wraient <wraient.911@gmail.com> · 2024-10-23 10:54 UTC

Fix: Minor fix

Layout: unified · split

internal/curd.go +3 −2
@@ -356,8 +356,9 @@ func StartCurd(userCurdConfig *CurdConfig, anime *Anime, logFile string) string
356356
357357 Log(anime, logFile)
358358
359 // Write anime.AnilistId to .local/share/curd/curd_id
360 idFilePath := filepath.Join(os.Getenv(userCurdConfig.StoragePath), "curd_id")
359 // Write anime.AnilistId to curd_id in the storage path
360 idFilePath := filepath.Join(os.ExpandEnv(userCurdConfig.StoragePath), "curd_id")
361 Log(fmt.Sprintf("idFilePath: %v", idFilePath), logFile)
361362 if err := os.MkdirAll(filepath.Dir(idFilePath), 0755); err != nil {
362363 Log(fmt.Sprintf("Failed to create directory for curd_id: %v", err), logFile)
363364 } else {