diff --git a/install.sh b/install.sh index 17472bb..04ad65e 100644 --- a/install.sh +++ b/install.sh @@ -155,10 +155,12 @@ install_uv() { check_python() { log_info "Checking Python $PYTHON_VERSION..." - if "$UV_CMD" python find "$PYTHON_VERSION" /dev/null; then + local py_path + py_path="$("$UV_CMD" python find "$PYTHON_VERSION" /dev/null)" || true + if [ -n "$py_path" ]; then local ver - ver="$("$UV_CMD" python find "$PYTHON_VERSION" &1)" - log_success "$ver found" + ver="$("$py_path" --version 2>&1)" || true + log_success "${ver:-Python $PYTHON_VERSION} found" return fi log_info "Installing Python $PYTHON_VERSION via uv..."