mirror of
https://github.com/schollz/croc
synced 2024-07-05 17:18:55 +00:00
fix println warnings
This commit is contained in:
parent
69fc3cee47
commit
78feb393de
|
@ -144,15 +144,14 @@ Do you wish to continue to DISABLE the classic mode? (Y/n) `)
|
||||||
choice := strings.ToLower(utils.GetInput(""))
|
choice := strings.ToLower(utils.GetInput(""))
|
||||||
if choice == "y" || choice == "yes" {
|
if choice == "y" || choice == "yes" {
|
||||||
os.Remove(classicFile)
|
os.Remove(classicFile)
|
||||||
fmt.Println("\nClassic mode DISABLED.\n")
|
fmt.Print("\nClassic mode DISABLED.\n\n")
|
||||||
fmt.Println(`To send and receive, export the CROC_SECRET variable with the code phrase:
|
fmt.Print(`To send and receive, export the CROC_SECRET variable with the code phrase:
|
||||||
|
|
||||||
Send: CROC_SECRET=*** croc send file.txt
|
Send: CROC_SECRET=*** croc send file.txt
|
||||||
|
|
||||||
Receive: CROC_SECRET=*** croc
|
Receive: CROC_SECRET=*** croc` + "\n\n")
|
||||||
`)
|
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("\nClassic mode ENABLED.\n")
|
fmt.Print("\nClassic mode ENABLED.\n")
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -168,16 +167,15 @@ shared secret and receive the files instead of the intended recipient.
|
||||||
Do you wish to continue to enable the classic mode? (Y/n) `)
|
Do you wish to continue to enable the classic mode? (Y/n) `)
|
||||||
choice := strings.ToLower(utils.GetInput(""))
|
choice := strings.ToLower(utils.GetInput(""))
|
||||||
if choice == "y" || choice == "yes" {
|
if choice == "y" || choice == "yes" {
|
||||||
fmt.Println("\nClassic mode ENABLED.\n")
|
fmt.Print("\nClassic mode ENABLED.\n\n")
|
||||||
os.WriteFile(classicFile, []byte("enabled"), 0o644)
|
os.WriteFile(classicFile, []byte("enabled"), 0o644)
|
||||||
fmt.Println(`To send and receive, use the code phrase:
|
fmt.Print(`To send and receive, use the code phrase:
|
||||||
|
|
||||||
Send: croc send --code *** file.txt
|
Send: croc send --code *** file.txt
|
||||||
|
|
||||||
Receive: croc ***
|
Receive: croc ***` + "\n\n")
|
||||||
`)
|
|
||||||
} else {
|
} else {
|
||||||
fmt.Println("\nClassic mode DISABLED.\n")
|
fmt.Print("\nClassic mode DISABLED.\n")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user