profclems / glab

The GitLab CLI tool. Archived: now officially adopted by GitLab as the official CLI tool and maintained at https://gitlab.com/gitlab-org/cli. See https://github.com/profclems/glab/issues/983
https://glab.readthedocs.io/
MIT License
2.08k stars 163 forks source link

Install on arm64 error #1019

Closed kebe7jun closed 2 years ago

kebe7jun commented 2 years ago

Description

Run curl -s https://raw.githubusercontent.com/profclems/glab/trunk/scripts/install.sh | DEBUG=1 sudo sh It shows:

#0 2.012 + mkdir -p /tmp/glab_v1.22.0
#0 2.037 + printf -- Downloading glab_%s_%s_%s.tar.gz\n 1.22.0 Linux aarch64
#0 2.037 Downloading glab_1.22.0_Linux_aarch64.tar.gz
#0 2.039 + curl -sL https://github.com/profclems/glab/releases/download/v1.22.0/glab_1.22.0_Linux_aarch64.tar.gz
#0 2.039 + tar -C /tmp/glab_v1.22.0 -xzf -

The url should be https://github.com/profclems/glab/releases/download/v1.22.0/glab_1.22.0_Linux_arm64.tar.gz maybe.

Expected Behavior vs Actual Behavior

As upon.

Possible Fix

Change the logic here: https://github.com/profclems/glab/blob/e5cbfb277bc067159dd31917c0f76469859a5acb/scripts/install.sh#L41

Steps to Reproduce

See upon.

Logs

Your Environment