mirror of https://github.com/schollz/croc.git
add missing escape at end of cli app
This commit is contained in:
parent
92648e0112
commit
cf2363fd4e
|
@ -131,8 +131,9 @@ func Run() {
|
||||||
|
|
||||||
err := app.Run(os.Args)
|
err := app.Run(os.Args)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("\nerror: %s", err.Error())
|
fmt.Fprintf(os.Stderr, "\nerror: %s", err.Error())
|
||||||
}
|
}
|
||||||
|
fmt.Fprintf(os.Stderr, "\r\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
func saveDefaultConfig(c *cli.Context) error {
|
func saveDefaultConfig(c *cli.Context) error {
|
||||||
|
|
|
@ -609,7 +609,7 @@ func (cr *Croc) receive(forceSend int, serverAddress string, tcpPorts []string,
|
||||||
if useStdout {
|
if useStdout {
|
||||||
cr.FileInfo.Name = "stdout"
|
cr.FileInfo.Name = "stdout"
|
||||||
}
|
}
|
||||||
fmt.Fprintf(os.Stderr, "\nReceived %s written to %s (%2.1f %s)\n", folderOrFile, cr.FileInfo.Name, transferRate, transferType)
|
fmt.Fprintf(os.Stderr, "\nReceived %s written to %s (%2.1f %s)", folderOrFile, cr.FileInfo.Name, transferRate, transferType)
|
||||||
os.Remove(progressFile)
|
os.Remove(progressFile)
|
||||||
cr.StateString = fmt.Sprintf("Received %s written to %s (%2.1f %s)", folderOrFile, cr.FileInfo.Name, transferRate, transferType)
|
cr.StateString = fmt.Sprintf("Received %s written to %s (%2.1f %s)", folderOrFile, cr.FileInfo.Name, transferRate, transferType)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue