Skip to content

Commit

Permalink
BaseTools:Linux changes the way the latest version is judged
Browse files Browse the repository at this point in the history
Some Linux servers do not have BC installed,so errors occur.
So the judgment was changed to avoid this error.

Cc: Bob Feng <[email protected]>
Cc: Liming Gao <[email protected]>
Signed-off-by: Zhiju.Fan <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
  • Loading branch information
zhijufan authored and lgao4 committed Jul 1, 2019
1 parent aecad6c commit 3974488
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions edksetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3974488

Please sign in to comment.