mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
aecad6c1cb
commit
3974488393
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue