From 5f8ac4b035c259c0b2e5adc2f26f14e6689d443e Mon Sep 17 00:00:00 2001 From: Dan Anglin Date: Fri, 13 Sep 2024 13:23:14 +0100 Subject: [PATCH] fix: fixed neovim installation script --- scripts/install-neovim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install-neovim b/scripts/install-neovim index 62889fa..434dcda 100755 --- a/scripts/install-neovim +++ b/scripts/install-neovim @@ -1,4 +1,4 @@ -#!/usr/bi/env bash +#!/usr/bin/env bash set -o errexit set -o nounset @@ -9,7 +9,7 @@ if [ -z ${1+x} ]; then exit 1 fi -VERSION="$( echo ${1} | sed 's/v//g')" +VERSION="$( echo ${1} | sed 's/v//g' )" echo "Installing neovim version ${VERSION}" @@ -41,8 +41,8 @@ sha256sum --check nvim-linux64.tar.gz.sha256sum # extract contents to the installation directory 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 echo "Creating the symbolic link ${SYMLINK}" -ln -sf ${INSTALLATION_DIR}/bin/nvim ${SYMLINK} +ln -sf "${INSTALLATION_DIR}/bin/nvim" "${SYMLINK}"