Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add check version each arch #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

malikshi
Copy link

@malikshi malikshi commented Jul 24, 2023

i tested on arm64, i don't have mips devices at my current locations
fix: #37

@BJReplay
Copy link

I tested this on arm (not arm64).

I didn't replace the if with case but did test the fetching of the latest version and it upgraded my EA8500 from 1.46.0 to 1.48.0 successfully.

In effect, I took the snippet below only:

    latest_version=`wget -O- https://pkgs.tailscale.com/stable/ | grep -o "tailscale_[0-9.]*_${arch}.tgz" | grep -o '[0-9.]*' | head -n 1`

    if [ -z "$latest_version" ]; then
        echo "Error: Failed to fetch the latest Tailscale version for $arch architecture."
        exit 1
    fi

    tailscale_version="1.46.0"  # Your desired version (fallback if fetching the latest fails)

    if [ "$tailscale_version" != "$latest_version" ]; then
        tailscale_version=$latest_version
    fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

requests & bug: stable version for architectures are differents
2 participants