Browse Source

Put pre-rsync message in right place

master
Matt Baer 9 years ago
parent
commit
279d0e6e3b
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      write-telnet.go

+ 2
- 1
write-telnet.go View File

@@ -163,9 +163,10 @@ func readInput(c net.Conn) {
output(c, "Something went terribly wrong, sorry. Try again later?\n\n")
break
}
output(c, fmt.Sprintf("\n%s\nPosted to %shttp://nerds.write.as/%s%s\nPosting to secure site...", hr, colBlue, file, noCol))
output(c, fmt.Sprintf("\n%s\nPosted to %shttp://nerds.write.as/%s%s", hr, colBlue, file, noCol))

if rsyncHost != "" {
output(c, "\nPosting to secure site...")
exec.Command("rsync", "-ptgou", outDir + "/" + file, rsyncHost + ":").Run()
output(c, fmt.Sprintf("\nPosted! View at %shttps://write.as/%s%s", colBlue, file, noCol))
}


Loading…
Cancel
Save