Skip to content

Commit 7365165

Browse files
committed
fix logic
1 parent 5c2b59f commit 7365165

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.evergreen/utils.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,10 @@ get_python_binary() {
127127
else
128128
PYTHON="/opt/python/$version/bin/python3"
129129
fi
130-
if [ ! -v "$PYTHON" ]; then
130+
if is_python_39 "$(command -v $PYTHON)"; then
131+
echo "$PYTHON"
132+
else
131133
echo "Could not find suitable python binary for '$version'" >&2
132134
return 1
133135
fi
134-
echo "$PYTHON"
135136
}

0 commit comments

Comments
 (0)