flavor: exit with code 1 on a build failure

This commit is contained in:
eater 2019-07-05 17:03:18 +02:00
parent 2b70b20a33
commit 7cd18bac7a

9
flavor
View file

@ -289,6 +289,15 @@ sub MAIN() {
system "$builder push $repo/$item"
}
}
my %image_done = ();
$image_done{$_} = 1 foreach (@succ);
my @missed = grep {!defined($image_done{$_})} @images;
if (@missed) {
print "Following images failed: ".join(" ", @missed)."\n";
exit 1;
}
}
MAIN;