From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.5580.1598478364766966204 for ; Wed, 26 Aug 2020 14:46:05 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: joseph.hemann@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B3806101E; Wed, 26 Aug 2020 14:46:03 -0700 (PDT) Received: from u203013-lin.austin.arm.com (u203013-lin.austin.arm.com [10.118.28.47]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AA0413F68F; Wed, 26 Aug 2020 14:46:03 -0700 (PDT) From: Joseph Hemann To: devel@edk2.groups.io Cc: G Edhaya Chandran , Eric Jin , Irene Park , Heinrich Schuchardt , Samer El-Haj-Mahmoud Subject: [PATCH v1 1/1] uefi-sct/SctPkg: Changed gcc version to be integer Date: Wed, 26 Aug 2020 16:46:03 -0500 Message-Id: <20200826214603.11530-1-joseph.hemann@arm.com> X-Mailer: git-send-email 2.17.1 gcc_version returned by compiler is a string, and needs to be converted to a integer before testing Cc: G Edhaya Chandran Cc: Eric Jin Cc: Irene Park Cc: Heinrich Schuchardt Cc: Samer El-Haj-Mahmoud Signed-off-by: Joseph Hemann Change-Id: I24f3f52c12660928b58e6f836fdef86890688d26 --- uefi-sct/SctPkg/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uefi-sct/SctPkg/build.sh b/uefi-sct/SctPkg/build.sh index d0c7f16e172c..cad17ccdedc7 100755 --- a/uefi-sct/SctPkg/build.sh +++ b/uefi-sct/SctPkg/build.sh @@ -56,8 +56,8 @@ function get_gcc_version { gcc_version=$($1 -dumpversion) - if [ "$gcc_version" -gt "5" ]; then - gcc_version="5" + if [ ${gcc_version%%.*} -gt 5 ]; then + gcc_version=5 fi case $gcc_version in -- 2.17.1