From 4886259cfbc8c7e85f95e0a82408d292daebfacf Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Fri, 27 Dec 2024 11:00:41 -0800 Subject: [PATCH] Update lua language server script --- install_lls.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install_lls.sh b/install_lls.sh index 3693e59..86e6c7b 100755 --- a/install_lls.sh +++ b/install_lls.sh @@ -1,12 +1,12 @@ #!/usr/bin/bash -e -RELEASE_VERSION="3.13.5" +RELEASE_VERSION=$(curl -sL https://api.github.com/repos/LuaLS/lua-language-server/releases/latest | jq -r ".tag_name") RELEASE_URL="https://github.com/LuaLS/lua-language-server/releases/download/$RELEASE_VERSION/lua-language-server-$RELEASE_VERSION-linux-x64.tar.gz" -RELEASE_NAME="lls.tar.gz" +RELEASE_TARBALL="lls.tar.gz" RELEASE_DIR="lls" -wget $RELEASE_URL -O $RELEASE_NAME +curl -L -o $RELEASE_TARBALL $RELEASE_URL rm -rf $RELEASE_DIR mkdir -p $RELEASE_DIR -tar xzf $RELEASE_NAME -C $RELEASE_DIR -rm $RELEASE_NAME +tar xzf $RELEASE_TARBALL -C $RELEASE_DIR +rm $RELEASE_TARBALL