From f50ca9bf6de25328174a55268a75ca3f999384b3 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Fri, 10 Apr 2020 12:26:14 +0200 Subject: [PATCH] also warn if /usr/sbin/update-binfmts has non-zero exit --- mmdebstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmdebstrap b/mmdebstrap index f3a15ca..6ec0506 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -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"; }