wip update
This commit is contained in:
3
main.go
3
main.go
@ -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 {
|
||||
|
Reference in New Issue
Block a user