From patchwork Tue Feb 7 22:45:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [CONSOLIDATED, PULL, 33/35] gcc-cross-testing: Fix evaluation of user and target name Date: Tue, 07 Feb 2012 22:45:53 -0000 From: Saul Wold X-Patchwork-Id: 20997 Message-Id: <3374cdf465e897e5f068cac360d1367b9e16a103.1328654424.git.sgw@linux.intel.com> To: openembedded-core@lists.openembedded.org diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc index 6acf8c5..b16c57d 100644 --- a/meta/recipes-devtools/gcc/gcc-cross.inc +++ b/meta/recipes-devtools/gcc/gcc-cross.inc @@ -65,11 +65,11 @@ then exit 1; fi -echo "\$target" | grep ?q "@" >& /dev/null +echo "\$target" | grep "@" >& /dev/null if [ "x\$?" = "x0" ] then - user=echo \$target | cut -d '@' -f 1 - target=echo \$target | cut -d '@' -f 2 + user=\$(echo \$target | cut -d '@' -f 1) + target=\$(echo \$target | cut -d '@' -f 2) else user=\$USER fi