checkstack.pl: fix arch autodetection

chomp trailing newlines

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
This commit is contained in:
Bernhard Reutner-Fischer 2019-01-17 21:53:53 +01:00
parent 94e748d027
commit fe7ae562e5

View File

@ -32,6 +32,7 @@ my (@stack, $re, $x, $xs);
my $arch = shift;
if ($arch eq "") {
$arch = `uname -m`;
1 while chomp $arch;
}
$x = "[0-9a-f]"; # hex character