1
0
Переглянути джерело

Put pre-rsync message in right place

master
Matt Baer 9 роки тому
джерело
коміт
279d0e6e3b
1 змінених файлів з 2 додано та 1 видалено
  1. +2
    -1
      write-telnet.go

+ 2
- 1
write-telnet.go Переглянути файл

@@ -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))
}


Завантаження…
Відмінити
Зберегти