From 5acfa519df9f7ea58f81035559b99a4a3e04aa16 Mon Sep 17 00:00:00 2001 From: jdhao Date: Mon, 2 Aug 2021 00:32:44 +0800 Subject: update setup and install script --- docs/nvim_install_mac.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'docs/nvim_install_mac.sh') diff --git a/docs/nvim_install_mac.sh b/docs/nvim_install_mac.sh index 4cb03cd..3a123cb 100644 --- a/docs/nvim_install_mac.sh +++ b/docs/nvim_install_mac.sh @@ -1,3 +1,4 @@ +#!/bin/bash set -eux wget https://hub.fastgit.org/neovim/neovim/releases/download/nightly/nvim-macos.tar.gz @@ -7,11 +8,11 @@ if [[ ! -d "$HOME/tools/" ]]; then fi # Delete existing nvim installation. -if [[ -d $HOME/tools/nvim-osx64/ ]]; then - rm -rf $HOME/tools/nvim-osx64 +if [[ -d "$HOME/tools/nvim-osx64" ]]; then + rm -rf "$HOME/tools/nvim-osx64" fi # Extract the tar ball -tar zxvf nvim-macos.tar.gz -C $HOME/tools +tar zxvf nvim-macos.tar.gz -C "$HOME/tools" rm nvim-macos.tar.gz -- cgit v1.2.3