X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=host%2Fnessie_check.rb;h=d0f2b55a237473155d21a3a0910396c25505bc14;hp=56bd17be50da837a7385a1df8989dcaf8b8c8c62;hb=83d0614d8b17eac97f891f7de2bb3ef265751dea;hpb=fa7a41a129697b6e7dce363060d2265f5fdb93a6 diff --git a/host/nessie_check.rb b/host/nessie_check.rb index 56bd17b..d0f2b55 100644 --- a/host/nessie_check.rb +++ b/host/nessie_check.rb @@ -47,7 +47,7 @@ def get_next_assign(file, i) return nil if file.eof l = file.gets().strip() if not /[^=]+=[^=]+/.match(l) - value += l if /[0-9A-Fa-f]{5}/.match(l) + value += l if /^[0-9A-Fa-f]{5}/.match(l) end end until /[^=]+=[^=]+/.match(l) $last_assign[i] = l @@ -59,7 +59,7 @@ def get_next_assign(file, i) return nil if file.eof l = file.gets().strip() if not /[^=]+=[^=]+/.match(l) - value += l if /[0-9A-Fa-f]{5}/.match(l) + value += l if /^[0-9A-Fa-f]{5}/.match(l) end end until /[^=]+=[^=]+/.match(l) $last_assign[i] = l @@ -109,8 +109,8 @@ if ARGV.size==3 $quiet=true end else - f1 = ARGV[1] - f2 = ARGV[2] + f1 = ARGV[0] + f2 = ARGV[1] end puts("compare("+f1+", "+f2+")")