We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c2b59f commit 7365165Copy full SHA for 7365165
1 file changed
.evergreen/utils.sh
@@ -127,9 +127,10 @@ get_python_binary() {
127
else
128
PYTHON="/opt/python/$version/bin/python3"
129
fi
130
- if [ ! -v "$PYTHON" ]; then
+ if is_python_39 "$(command -v $PYTHON)"; then
131
+ echo "$PYTHON"
132
+ else
133
echo "Could not find suitable python binary for '$version'" >&2
134
return 1
135
- echo "$PYTHON"
136
}
0 commit comments