summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlmckiwo <[email protected]>2022-04-30 10:33:45 -0400
committerGitHub <[email protected]>2022-04-30 16:33:45 +0200
commitebc29873422a4cbd0cb2b3434ac5787b6e76b4cc (patch)
treec6df6d9250a2c20f58d91bf0cf474007bafb60ad
parente4287b7180ad16174fa10b73ac5b3e43e605198e (diff)
fix(installer): latest and specified release version for neovim have different urls (#2484)
-rwxr-xr-xutils/installer/install-neovim-from-release6
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/installer/install-neovim-from-release b/utils/installer/install-neovim-from-release
index e98b1aee..08f27149 100755
--- a/utils/installer/install-neovim-from-release
+++ b/utils/installer/install-neovim-from-release
@@ -23,7 +23,11 @@ else
exit 1
fi
-declare -r RELEASE_URL="https://github.com/neovim/neovim/releases/$RELEASE_VER/download/$ARCHIVE_NAME.tar.gz"
+if [[ "${RELEASE_VER}" == "latest" ]]; then
+ declare -r RELEASE_URL="https://github.com/neovim/neovim/releases/${RELEASE_VER}/download/${ARCHIVE_NAME}.tar.gz"
+else
+ declare -r RELEASE_URL="https://github.com/neovim/neovim/releases/download/${RELEASE_VER}/${ARCHIVE_NAME}.tar.gz"
+fi
declare -r CHECKSUM_URL="$RELEASE_URL.sha256sum"
DOWNLOAD_DIR="$(mktemp -d)"