gcc_version returned by compiler is a string, and needs to be converted to a integer before testing
Cc: G Edhaya Chandran <[email protected]> Cc: Eric Jin <[email protected]> Cc: Irene Park <[email protected]> Cc: Heinrich Schuchardt <[email protected]> Cc: Samer El-Haj-Mahmoud <[email protected]> Signed-off-by: Joseph Hemann <[email protected]> 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 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#64658): https://edk2.groups.io/g/devel/message/64658 Mute This Topic: https://groups.io/mt/76439007/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
