mirror of
https://github.com/schollz/croc.git
synced 2025-10-10 21:01:02 +02:00
ui: add newlines to skipping messages
This commit is contained in:
parent
9246408278
commit
a4322faa25
2 changed files with 3 additions and 3 deletions
|
@ -1064,7 +1064,7 @@ func (c *Client) Receive() (err error) {
|
|||
err = c.transfer()
|
||||
if err == nil {
|
||||
if c.numberOfTransferredFiles+len(c.EmptyFoldersToTransfer) == 0 {
|
||||
fmt.Fprintf(os.Stderr, "\rNo files transferred.")
|
||||
fmt.Fprintf(os.Stderr, "\rNo files transferred.\n")
|
||||
}
|
||||
}
|
||||
return
|
||||
|
@ -1780,7 +1780,7 @@ func (c *Client) updateIfRecipientHasFileInfo() (err error) {
|
|||
}
|
||||
choice := strings.ToLower(utils.GetInput(prompt))
|
||||
if choice != "y" && choice != "yes" {
|
||||
fmt.Fprintf(os.Stderr, "skipping '%s'", path.Join(fileInfo.FolderRemote, fileInfo.Name))
|
||||
fmt.Fprintf(os.Stderr, "Skipping '%s'\n", path.Join(fileInfo.FolderRemote, fileInfo.Name))
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
|
|
@ -542,7 +542,7 @@ func UnzipDirectory(destination string, source string) error {
|
|||
prompt := fmt.Sprintf("\nOverwrite '%s'? (y/N) ", filePath)
|
||||
choice := strings.ToLower(GetInput(prompt))
|
||||
if choice != "y" && choice != "yes" {
|
||||
fmt.Fprintf(os.Stderr, "skipping '%s'", filePath)
|
||||
fmt.Fprintf(os.Stderr, "Skipping '%s'\n", filePath)
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue