Fix the path

This commit is contained in:
Timmy Welch 2024-02-24 13:04:46 -08:00
parent 5b7d3cf08e
commit 64eecd7f46
2 changed files with 2 additions and 2 deletions

2
go.mod
View File

@ -1,6 +1,6 @@
module gitea.narnian.us/lordwelch/gcd_downloader
go 1.21.1
go 1.21
require (
github.com/PuerkitoBio/goquery v1.8.1

View File

@ -288,7 +288,7 @@ func download(current time.Time) {
// Update the times so the latest file is the uncompressed file
currentTime := time.Now()
err = os.Chtimes(sqlite_filename, currentTime, currentTime)
err = os.Chtimes(filepath.Join(*destination, sqlite_filename), currentTime, currentTime)
if err != nil {
Fatal(err)
}