diff --git a/go.mod b/go.mod index f80fabc..fcaec40 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/main.go b/main.go index 9ed670e..1e4f1ed 100644 --- a/main.go +++ b/main.go @@ -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) }