Fix a logic bug in a check for matching files.

Change-Id: I04d24ecddb78c9d302ecf58320aa3eb40fe507fb
This commit is contained in:
Jamie Gennis 2014-06-11 16:24:23 -07:00
parent b931456573
commit a22f3e5e24

View file

@ -70,7 +70,7 @@ func Main(ctx *blueprint.Context, config blueprint.Config) {
}
matches := buf.Len() == len(checkData)
if !matches {
if matches {
for i, value := range buf.Bytes() {
if value != checkData[i] {
matches = false