feat: repo health check (#16) #17

Merged
张泊明518370910136 merged 37 commits from file_check into master 2024-09-11 20:09:27 +08:00
Showing only changes of commit ac583504e5 - Show all commits

View File

@ -59,7 +59,6 @@ func VerifyFiles(rootDir string,checkFileNameList string, checkFileSumList strin
// Check if the number of files matches the number of checksums
if len(fileNames) != len(checkSums) {
return fmt.Errorf("Error: The number of files and checksums do not match.")
os.Exit(1)

remove it

remove it

I mean remove the os.Exit(1), and also the one on line 55.

I mean remove the `os.Exit(1)`, and also the one on line 55.
@ -80,7 +79,6 @@ func VerifyFiles(rootDir string,checkFileNameList string, checkFileSumList strin
errorMessages = append(errorMessages, message)
}
}
fmt.Printf("test")
if allPassed {
return nil // fmt.Errorf("Congratulations! All checksums passed!")

ditto

ditto
} else {