mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-20 16:08:51 +03:00
Fix install.sh branch on Linux.
This commit is contained in:
parent
582b2fff6f
commit
4d77ad2a0b
@ -5,10 +5,10 @@ find_python() {
|
||||
unset BEST_VERSION
|
||||
for V in 37 3.7 38 3.8 3
|
||||
do
|
||||
which -s python$V
|
||||
if [ x$? == x0 ]
|
||||
which python$V > /dev/null
|
||||
if [ $? = 0 ]
|
||||
then
|
||||
if [ x$BEST_VERSION == x ]
|
||||
if [ x$BEST_VERSION = x ]
|
||||
then
|
||||
BEST_VERSION=$V
|
||||
fi
|
||||
@ -18,7 +18,8 @@ find_python() {
|
||||
set -e
|
||||
}
|
||||
|
||||
if [ x$INSTALL_PYTHON_VERSION == x ]; then
|
||||
if [ x$INSTALL_PYTHON_VERSION = x ]
|
||||
then
|
||||
INSTALL_PYTHON_VERSION=`find_python`
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user