We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 582b2ff commit 4d77ad2Copy full SHA for 4d77ad2
install.sh
@@ -5,10 +5,10 @@ find_python() {
5
unset BEST_VERSION
6
for V in 37 3.7 38 3.8 3
7
do
8
- which -s python$V
9
- if [ x$? == x0 ]
+ which python$V > /dev/null
+ if [ $? = 0 ]
10
then
11
- if [ x$BEST_VERSION == x ]
+ if [ x$BEST_VERSION = x ]
12
13
BEST_VERSION=$V
14
fi
@@ -18,7 +18,8 @@ find_python() {
18
set -e
19
}
20
21
-if [ x$INSTALL_PYTHON_VERSION == x ]; then
+if [ x$INSTALL_PYTHON_VERSION = x ]
22
+then
23
INSTALL_PYTHON_VERSION=`find_python`
24
25
0 commit comments