Update lua language server script

This commit is contained in:
Alex Yatskov 2024-12-27 11:00:41 -08:00
parent 764bbf484c
commit 4886259cfb

View File

@ -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