diff options
Diffstat (limited to 'wget.go')
| -rw-r--r-- | wget.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -74,8 +74,7 @@ func WgetToFile(filepath string, url string) error { // BUGS: The author's idea of friendly may differ to that of many other people. func Write(filepath string, data string) bool { // TODO: this isn't working for some reason and is making two '\n' chars - // probably because Chomp() isn't fixed yet - data = Chomp(data) + "\n" + data = strings.TrimSpace(data) + "\n" // Create the file ospath := Path(filepath) log.Log(INFO, "shell.Write() START ospath =", ospath, "filepath =", filepath) |
