From ebc29873422a4cbd0cb2b3434ac5787b6e76b4cc Mon Sep 17 00:00:00 2001 From: lmckiwo <37028112+lmckiwo@users.noreply.github.com> Date: Sat, 30 Apr 2022 10:33:45 -0400 Subject: fix(installer): latest and specified release version for neovim have different urls (#2484) --- utils/installer/install-neovim-from-release | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'utils/installer/install-neovim-from-release') 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)" -- cgit v1.2.3