From 47ebfed5626c234e9d819c4d50db59843d888f6e Mon Sep 17 00:00:00 2001 From: MoetaYuko Date: Thu, 28 Sep 2023 14:11:41 +0800 Subject: [PATCH] Fix downloading the latest release The latest release comes first --- install-wizard.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-wizard.sh b/install-wizard.sh index 0badb81..23dc24d 100755 --- a/install-wizard.sh +++ b/install-wizard.sh @@ -63,7 +63,7 @@ function download_binary() { echo "Getting latest release..." # TODO use "latest" tag - url=$(curl -s "https://api.github.com/repos/morantron/tmux-fingers/releases" | grep browser_download_url | tail -1 | grep -o https://.*x86_64) + url=$(curl -s "https://api.github.com/repos/morantron/tmux-fingers/releases" | grep browser_download_url | head -1 | grep -o https://.*x86_64) echo "Downloading binary from $url"