From 64bc79b1db1edf202c569cb7e863c475f922f5d3 Mon Sep 17 00:00:00 2001 From: Patrick Jahns Date: Tue, 25 Sep 2018 22:38:06 +0200 Subject: [PATCH] fix comparison for sha256 checksum --- plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index 02107c5..7f61950 100644 --- a/plugin.go +++ b/plugin.go @@ -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) } }