fix paths on Write()
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
9648439950
commit
ee9a683f8c
2
wget.go
2
wget.go
|
@ -78,7 +78,7 @@ func WgetToFile(filepath string, url string) error {
|
||||||
func Write(filepath string, data string) bool {
|
func Write(filepath string, data string) bool {
|
||||||
data = Chomp(data) + "\n"
|
data = Chomp(data) + "\n"
|
||||||
// Create the file
|
// Create the file
|
||||||
out, err := os.Create(filepath)
|
out, err := os.Create(Path(filepath))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue