fix: fixed neovim installation script

This commit is contained in:
Dan Anglin 2024-09-13 13:23:14 +01:00
parent 179dcb9aa9
commit 5f8ac4b035
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638

View file

@ -1,4 +1,4 @@
#!/usr/bi/env bash #!/usr/bin/env bash
set -o errexit set -o errexit
set -o nounset set -o nounset
@ -9,7 +9,7 @@ if [ -z ${1+x} ]; then
exit 1 exit 1
fi fi
VERSION="$( echo ${1} | sed 's/v//g')" VERSION="$( echo ${1} | sed 's/v//g' )"
echo "Installing neovim version ${VERSION}" echo "Installing neovim version ${VERSION}"
@ -41,8 +41,8 @@ sha256sum --check nvim-linux64.tar.gz.sha256sum
# extract contents to the installation directory # extract contents to the installation directory
echo "Extracting the package to ${INSTALLATION_DIR}" echo "Extracting the package to ${INSTALLATION_DIR}"
tar xzf "${DOWNLOAD_DIR}/nvim-linux64.tar.gz" --strip-components=1 -C ${INSTALLATION_DIR} tar xzf "${DOWNLOAD_DIR}/nvim-linux64.tar.gz" --strip-components=1 -C "${INSTALLATION_DIR}"
# create the symlink # create the symlink
echo "Creating the symbolic link ${SYMLINK}" echo "Creating the symbolic link ${SYMLINK}"
ln -sf ${INSTALLATION_DIR}/bin/nvim ${SYMLINK} ln -sf "${INSTALLATION_DIR}/bin/nvim" "${SYMLINK}"