Skip to content

Commit eb28b34

Browse files
authored
fix: better align checksum output (#61)
1 parent e7795b5 commit eb28b34

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/tools/checksum.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,10 @@ func truncateString(s string, maxLen int) string {
195195
// VerifyFileWithWarning verifies a file with checksum, but only warns if verification fails
196196
func (cv *ChecksumVerifier) VerifyFileWithWarning(filePath string, checksum ChecksumInfo) {
197197
if err := cv.VerifyFile(filePath, checksum); err != nil {
198-
fmt.Printf("⚠️ Checksum verification failed: %v\n", err)
199-
fmt.Printf(" File: %s\n", filePath)
200-
fmt.Printf(" This could indicate a corrupted download or security issue.\n")
198+
fmt.Printf(" ⚠️ Checksum verification failed: %v\n", err)
199+
fmt.Printf(" File: %s\n", filePath)
200+
fmt.Printf(" This could indicate a corrupted download or security issue.\n")
201201
} else {
202-
fmt.Printf("✅ Checksum verified successfully\n")
202+
fmt.Printf(" ✅ Checksum verified successfully\n")
203203
}
204204
}

0 commit comments

Comments
 (0)