fix comparison for sha256 checksum

This commit is contained in:
Patrick Jahns
2018-09-25 22:38:06 +02:00
parent ce7e9cd1c9
commit 64bc79b1db
+1 -1
View File
@@ -130,7 +130,7 @@ func (p Plugin) Exec() error {
check := fmt.Sprintf("%x", h.Sum(nil)) 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) return fmt.Errorf("checksum doesn't match, got %s and expected %s", check, p.Config.SHA256)
} }
} }