From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.100, mailfrom: zhijux.fan@intel.com) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by groups.io with SMTP; Tue, 25 Jun 2019 21:49:38 -0700 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jun 2019 21:49:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,418,1557212400"; d="dat'59?scan'59,208,59";a="183046346" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga001.fm.intel.com with ESMTP; 25 Jun 2019 21:49:36 -0700 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 25 Jun 2019 21:49:36 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX154.amr.corp.intel.com (10.18.116.70) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 25 Jun 2019 21:49:36 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.87]) by shsmsx102.ccr.corp.intel.com ([169.254.2.33]) with mapi id 14.03.0439.000; Wed, 26 Jun 2019 12:49:34 +0800 From: "Fan, ZhijuX" To: "devel@edk2.groups.io" CC: "Gao, Liming" , "Feng, Bob C" , "rebecca@bluestop.org" Subject: [PATCH V2] BaseTools:Linux changes the way the latest version is judged Thread-Topic: [PATCH V2] BaseTools:Linux changes the way the latest version is judged Thread-Index: AdUr2kCxvuNMFWbzTPS/3VcXtp3e8g== Date: Wed, 26 Jun 2019 04:49:33 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: zhijux.fan@intel.com X-Groupsio-MsgNum: 42864 Content-Type: multipart/mixed; boundary="_000_FAD0D7E0AE0FA54D987F6E72435CAFD50AF84C3CSHSMSX101ccrcor_" Content-Language: en-US --_000_FAD0D7E0AE0FA54D987F6E72435CAFD50AF84C3CSHSMSX101ccrcor_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Some Linux servers do not have BC installed,so errors occur. So the judgment was changed to avoid this error. Cc: Bob Feng Cc: Liming Gao Signed-off-by: Zhiju.Fan --- Change "\<" to "<" and add as two "[]" edksetup.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/edksetup.sh b/edksetup.sh index c7b2e1e201..0723e7b85a 100755 --- a/edksetup.sh +++ b/edksetup.sh @@ -122,8 +122,7 @@ function SetupPython3() export PYTHON_COMMAND=3D$python continue fi - ret=3D`echo "$origin_version < $python_version" |bc` - if [ "$ret" -eq 1 ]; then + if [[ "$origin_version" < "$python_version" ]]; then origin_version=3D$python_version export PYTHON_COMMAND=3D$python fi @@ -165,8 +164,7 @@ function SetupPython() export PYTHON_COMMAND=3D$python continue fi - ret=3D`echo "$origin_version < $python_version" |bc` - if [ "$ret" -eq 1 ]; then + if [[ "$origin_version" < "$python_version" ]]; then origin_version=3D$python_version export PYTHON_COMMAND=3D$python fi --=20 2.14.1.windows.1 --_000_FAD0D7E0AE0FA54D987F6E72435CAFD50AF84C3CSHSMSX101ccrcor_ Content-Disposition: attachment; filename="winmail.dat" Content-Transfer-Encoding: base64 Content-Type: application/ms-tnef; name="winmail.dat" eJ8+ImYrAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEJgAEAIQAAADg0M0JDOTQ4 QUQ1N0EwNDRCRjUwQTQxODk2MzMxNEREACAHAQ2ABAACAAAAAgACAAEFgAMADgAAAOMHBgAaAAQA MQAhA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