mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
I fucking hate it
This commit is contained in:
parent
223459526e
commit
69d2e10362
1 changed files with 2 additions and 5 deletions
|
|
@ -67,10 +67,6 @@ func loginCredentials(user, password string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if err = os.WriteFile(filepath.Join(os.TempDir(), ".crunchy"), []byte(c.SessionID), 0600); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if loginPersistentFlag {
|
||||
if configDir, err := os.UserConfigDir(); err != nil {
|
||||
return fmt.Errorf("could not save credentials persistent: %w", err)
|
||||
|
|
@ -135,6 +131,7 @@ func loginCredentials(user, password string) error {
|
|||
"To encrypt it, use the `--encrypt` flag", filepath.Join(configDir, "crunchyroll-go", "crunchy"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if err = os.WriteFile(filepath.Join(os.TempDir(), ".crunchy"), []byte(c.EtpRt), 0600); err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue