Compare commits

...

2 Commits

Author SHA1 Message Date
Thomas Boerger 125c08a2e6 Merge pull request #9 from patrickjahns/fix_checksum_miscalculation
fix comparison for sha256 checksum
2018-09-26 07:38:35 +02:00
Patrick Jahns 64bc79b1db fix comparison for sha256 checksum 2018-09-25 22:38:06 +02:00
+1 -1
View File
@@ -130,7 +130,7 @@ func (p Plugin) Exec() error {
check := fmt.Sprintf("%x", h.Sum(nil))
if p.Config.MD5 != check {
if p.Config.SHA256 != check {
return fmt.Errorf("checksum doesn't match, got %s and expected %s", check, p.Config.SHA256)
}
}