From b57759e81b35a08b103a64feb30b3284fbd7d1af Mon Sep 17 00:00:00 2001 From: Dmitriy Nikiforov Date: Fri, 15 Sep 2017 21:27:19 +0300 Subject: [PATCH] Cut all newline characters from the 'uname -m' command output Change-Id: I25de911701ff58549f21c016e47b0255cb9a33da --- infra/utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/utils.sh b/infra/utils.sh index ffc4987..f4ff35c 100644 --- a/infra/utils.sh +++ b/infra/utils.sh @@ -85,7 +85,7 @@ function sdb_shell { # Checks the device architecture function get_device_arch { declare -A archs=([x86_64]='x86_64' [i686]='i586') - echo "${archs[$(sdb_shell_verbose uname -m)]}" + echo "${archs[$(sdb_shell_verbose uname -m | tr -d '\n\r')]}" } # Gets gbs config file by architecture -- 2.7.4