diff options
| author | Jeff Carr <[email protected]> | 2024-11-08 06:43:04 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-08 06:43:04 -0600 |
| commit | d887da32f20feee8bfbebf7b2db63f1a42fd7176 (patch) | |
| tree | 8a13e9890c6c9c6e149bdf4cb5ebaf458fcaa167 /wget.go | |
| parent | ae5cadf5455d5f65fdab0b690b8d403090750fc3 (diff) | |
use go-cmd/cmd and purge old codev0.22.5
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) |
