X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=host%2Fnessie_check.rb;h=db69483f26f3dce72941d847f62b0cd03e2b5633;hb=94f6d6aad57f8d1230409f74e42395edc290668a;hp=95f3a83f3b8dff692c76436c019bc53dee813c4e;hpb=4f19c43af8afeb3c569eb7b4aa15907832cf8e5c;p=arm-crypto-lib.git diff --git a/host/nessie_check.rb b/host/nessie_check.rb index 95f3a83..db69483 100644 --- a/host/nessie_check.rb +++ b/host/nessie_check.rb @@ -19,12 +19,18 @@ =end def skip_header(file) + i=0 begin + i += 1 l = file.gets().strip - end until /[*]{10,}.*/.match(l) - begin - l = file.gets().strip - end until /[*]{10,}.*/.match(l) + end until i>10 or m=/[*]{10,}.*/.match(l) + if(!m) + file.seek(0, IO::SEEK_SET) + else + begin + l = file.gets().strip + end until /[*]{10,}.*/.match(l) + end begin l = file.gets().strip end until /[=]{5,}.*/.match(l)