From b7b6b28377c2590013cecae40a0942affd6ea19e Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Thu, 20 Sep 2018 20:49:48 +0200 Subject: [PATCH] Don't forget to chomp away the newline of the arch-test output --- mmdebstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmdebstrap b/mmdebstrap index 32881e7..3c46b48 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -955,7 +955,7 @@ sub main() { sparc64 => 'sparc64', }; open my $fh, '-|', 'arch-test', '-n', $nativearch // die "failed to fork(): $!"; - my $content = do { local $/; <$fh> }; + chomp (my $content = do { local $/; <$fh> }); close $fh; if ($? != 0 or $content ne "$nativearch: ok") { if (!exists $deb2qemu->{$nativearch}) {