Cut all newline characters from the 'uname -m' command output 99/148099/8
authorDmitriy Nikiforov <d.nikiforov@samsung.com>
Fri, 15 Sep 2017 18:27:19 +0000 (21:27 +0300)
committerMaria Guseva <m.guseva@samsung.com>
Tue, 26 Sep 2017 13:13:17 +0000 (13:13 +0000)
Change-Id: I25de911701ff58549f21c016e47b0255cb9a33da

infra/utils.sh

index ffc4987..f4ff35c 100644 (file)
@@ -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