Skip to content

Counting issue in install script. #3

@mistial-dev

Description

@mistial-dev
(base) mistial@Mac ~ % curl -fsSL https://raw.githubusercontent.com/infinitimeless/LMStudio-MCP/main/install.sh | bash
================================
    LMStudio-MCP Installer
================================

ℹ Checking system requirements...
✗ Python 3.7+ is required. Found: 3.10

The relevant code is:

    PYTHON_VERSION=$($PYTHON_CMD -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
    if [[ $(echo "$PYTHON_VERSION 3.7" | awk '{print ($1 >= $2)}') == 0 ]]; then
        print_error "Python 3.7+ is required. Found: $PYTHON_VERSION"
        exit 1
    fi

This is a string comparison, and it needs to be a numeric comparison.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions