summaryrefslogtreecommitdiffstats
path: root/edksetup.sh
diff options
context:
space:
mode:
authorFan, ZhijuX <zhijux.fan@intel.com>2019-06-26 12:49:33 +0800
committerLiming Gao <liming.gao@intel.com>2019-07-01 11:57:06 +0800
commit39744883933eea9674ccaf243cbf565966b8fa74 (patch)
tree5fd8cdd2eb58457932a0225bbcd1a4ab271c5293 /edksetup.sh
parentaecad6c1cb21aee448ce2a0de0913f227a121f85 (diff)
downloadedk2-39744883933eea9674ccaf243cbf565966b8fa74.tar.gz
edk2-39744883933eea9674ccaf243cbf565966b8fa74.tar.bz2
edk2-39744883933eea9674ccaf243cbf565966b8fa74.zip
BaseTools:Linux changes the way the latest version is judged
Some Linux servers do not have BC installed,so errors occur. So the judgment was changed to avoid this error. Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'edksetup.sh')
-rwxr-xr-xedksetup.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/edksetup.sh b/edksetup.sh
index 61e988035f..12a3e26a67 100755
--- a/edksetup.sh
+++ b/edksetup.sh
@@ -122,8 +122,7 @@ function SetupPython3()
export PYTHON_COMMAND=$python
continue
fi
- ret=`echo "$origin_version < $python_version" |bc`
- if [ "$ret" -eq 1 ]; then
+ if [[ "$origin_version" < "$python_version" ]]; then
origin_version=$python_version
export PYTHON_COMMAND=$python
fi
@@ -165,8 +164,7 @@ function SetupPython()
export PYTHON_COMMAND=$python
continue
fi
- ret=`echo "$origin_version < $python_version" |bc`
- if [ "$ret" -eq 1 ]; then
+ if [[ "$origin_version" < "$python_version" ]]; then
origin_version=$python_version
export PYTHON_COMMAND=$python
fi