mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
Better ui
This commit is contained in:
parent
eae21303f2
commit
a058386d1b
1 changed files with 4 additions and 1 deletions
|
@ -223,8 +223,11 @@ func (c *Connection) runClient() {
|
||||||
if c.File.Hash != HashBytes(decrypted) {
|
if c.File.Hash != HashBytes(decrypted) {
|
||||||
fmt.Printf("\nUh oh! %s is corrupted! Sorry, try again.\n", c.File.Name)
|
fmt.Printf("\nUh oh! %s is corrupted! Sorry, try again.\n", c.File.Name)
|
||||||
} else {
|
} else {
|
||||||
fmt.Printf("\nDownloaded %s!", c.File.Name)
|
fmt.Printf("\nReceived file written to %s", c.File.Name)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
fmt.Println("File sent.")
|
||||||
|
// TODO: Add confirmation
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue