also warn if /usr/sbin/update-binfmts has non-zero exit

This commit is contained in:
Johannes 'josch' Schauer 2020-04-10 12:26:14 +02:00
parent df1827d991
commit f50ca9bf6d
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -3326,7 +3326,7 @@ sub main() {
my $binfmts = do { local $/; <$fh> }
);
close $fh;
if ($binfmts eq '') {
if ($? != 0 || $binfmts eq '') {
warning "$binfmt_identifier is not a supported"
. " binfmt name";
}