bugfix(gitlab-ci): refined pattern matching for not matching manifest.json

This commit is contained in:
Stephan Barth 2024-04-21 05:34:52 +02:00
parent 233e9ca92f
commit c764182a6d

View File

@ -154,7 +154,7 @@ my ($outerjson, $imageid) = ();
opendir($dirh, '.') or die "Could not read dir '.', because: $!";
while(my $fn = readdir($dirh)) {
next if $fn=~m#^\.#;
if($fn=~m#(.*)\.json#) {
if($fn=~m#(.{16,})\.json#) { # it shall match on hash sums but not for example on manifest.json
$outerjson = $1;
next
}