diff options
| author | jdhao <jdhao@hotmail.com> | 2021-08-02 00:32:44 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-08-02 00:32:44 +0800 |
| commit | 5acfa519df9f7ea58f81035559b99a4a3e04aa16 (patch) | |
| tree | 4408a6c6769214132aa1fe8c53cf116fceb58843 /docs/nvim_install_mac.sh | |
| parent | 36fa9f91e18de484fe71d819e6a1456bfff6162a (diff) | |
update setup and install script
Diffstat (limited to 'docs/nvim_install_mac.sh')
| -rw-r--r-- | docs/nvim_install_mac.sh | 7 |
1 files changed, 4 insertions, 3 deletions
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 |
