Skip to content

Commit

Permalink
Fix indentation in edksetup.sh SetupPython3
Browse files Browse the repository at this point in the history
Signed-off-by: Rebecca Cran <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
  • Loading branch information
[email protected] authored and lgao4 committed Jul 1, 2019
1 parent adec1f5 commit aecad6c
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions edksetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,27 +108,27 @@ function SetupEnv()
function SetupPython3()
{
if [ $origin_version ];then
origin_version=
origin_version=
fi
for python in $(whereis python3)
do
python=$(echo $python | grep "[[:digit:]]$" || true)
python_version=${python##*python}
if [ -z "${python_version}" ] || (! command -v $python >/dev/null 2>&1);then
continue
fi
for python in $(whereis python3)
do
python=$(echo $python | grep "[[:digit:]]$" || true)
python_version=${python##*python}
if [ -z "${python_version}" ] || (! command -v $python >/dev/null 2>&1);then
continue
fi
if [ -z $origin_version ];then
origin_version=$python_version
export PYTHON_COMMAND=$python
continue
fi
ret=`echo "$origin_version < $python_version" |bc`
if [ "$ret" -eq 1 ]; then
origin_version=$python_version
export PYTHON_COMMAND=$python
fi
done
return 0
if [ -z $origin_version ];then
origin_version=$python_version
export PYTHON_COMMAND=$python
continue
fi
ret=`echo "$origin_version < $python_version" |bc`
if [ "$ret" -eq 1 ]; then
origin_version=$python_version
export PYTHON_COMMAND=$python
fi
done
return 0
}

function SetupPython()
Expand Down

0 comments on commit aecad6c

Please sign in to comment.