bugfix(gitlab-ci): refined pattern matching for not matching manifest.json
This commit is contained in:
parent
233e9ca92f
commit
c764182a6d
@ -154,7 +154,7 @@ my ($outerjson, $imageid) = ();
|
|||||||
opendir($dirh, '.') or die "Could not read dir '.', because: $!";
|
opendir($dirh, '.') or die "Could not read dir '.', because: $!";
|
||||||
while(my $fn = readdir($dirh)) {
|
while(my $fn = readdir($dirh)) {
|
||||||
next if $fn=~m#^\.#;
|
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;
|
$outerjson = $1;
|
||||||
next
|
next
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user