We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fa9e7fc + bc9cf67 commit ec39dc0Copy full SHA for ec39dc0
1 file changed
install.sh
@@ -55,8 +55,7 @@ check_requirements() {
55
fi
56
57
# Check Python version
58
- PYTHON_VERSION=$($PYTHON_CMD -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
59
- if [[ $(echo "$PYTHON_VERSION 3.7" | awk '{print ($1 >= $2)}') == 0 ]]; then
+ if ! $PYTHON_CMD -c "import sys; exit(0 if sys.version_info >= (3, 7) else 1)"; then
60
print_error "Python 3.7+ is required. Found: $PYTHON_VERSION"
61
exit 1
62
0 commit comments