summaryrefslogtreecommitdiff
path: root/wget.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-08 06:43:04 -0600
committerJeff Carr <[email protected]>2024-11-08 06:43:04 -0600
commitd887da32f20feee8bfbebf7b2db63f1a42fd7176 (patch)
tree8a13e9890c6c9c6e149bdf4cb5ebaf458fcaa167 /wget.go
parentae5cadf5455d5f65fdab0b690b8d403090750fc3 (diff)
use go-cmd/cmd and purge old codev0.22.5
Diffstat (limited to 'wget.go')
-rw-r--r--wget.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/wget.go b/wget.go
index bd767d6..a09550b 100644
--- a/wget.go
+++ b/wget.go
@@ -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)