wip update

This commit is contained in:
2025-06-13 10:19:33 -07:00
parent a281948d0b
commit 656109e935
4 changed files with 6 additions and 26 deletions

View File

@ -102,12 +102,13 @@ func downloadUpdate(config *Config) (int, int, error) {
hashBytes := md5.Sum(data)
hash := hex.EncodeToString(hashBytes[:])
if hash == file.Hash {
fmt.Printf("File %s is up to date\n", localPath)
currentCount += 1
continue
}
}
fmt.Printf("Updating %s...\n", file.Path)
fmt.Printf(" %s...\n", localPath)
outFile, err := os.Create(localPath)
if err != nil {