Skip to content

Commit 4d77ad2

Browse files
committed
Fix install.sh branch on Linux.
1 parent 582b2ff commit 4d77ad2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

install.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ find_python() {
55
unset BEST_VERSION
66
for V in 37 3.7 38 3.8 3
77
do
8-
which -s python$V
9-
if [ x$? == x0 ]
8+
which python$V > /dev/null
9+
if [ $? = 0 ]
1010
then
11-
if [ x$BEST_VERSION == x ]
11+
if [ x$BEST_VERSION = x ]
1212
then
1313
BEST_VERSION=$V
1414
fi
@@ -18,7 +18,8 @@ find_python() {
1818
set -e
1919
}
2020

21-
if [ x$INSTALL_PYTHON_VERSION == x ]; then
21+
if [ x$INSTALL_PYTHON_VERSION = x ]
22+
then
2223
INSTALL_PYTHON_VERSION=`find_python`
2324
fi
2425

0 commit comments

Comments
 (0)