mirror of
https://github.com/drone-plugins/drone-download.git
synced 2026-06-04 18:24:21 +08:00
fix comparison for sha256 checksum
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user