Fix the path
This commit is contained in:
parent
5b7d3cf08e
commit
64eecd7f46
2
go.mod
2
go.mod
@ -1,6 +1,6 @@
|
|||||||
module gitea.narnian.us/lordwelch/gcd_downloader
|
module gitea.narnian.us/lordwelch/gcd_downloader
|
||||||
|
|
||||||
go 1.21.1
|
go 1.21
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/PuerkitoBio/goquery v1.8.1
|
github.com/PuerkitoBio/goquery v1.8.1
|
||||||
|
2
main.go
2
main.go
@ -288,7 +288,7 @@ func download(current time.Time) {
|
|||||||
|
|
||||||
// Update the times so the latest file is the uncompressed file
|
// Update the times so the latest file is the uncompressed file
|
||||||
currentTime := time.Now()
|
currentTime := time.Now()
|
||||||
err = os.Chtimes(sqlite_filename, currentTime, currentTime)
|
err = os.Chtimes(filepath.Join(*destination, sqlite_filename), currentTime, currentTime)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Fatal(err)
|
Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user