aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2022-06-27 23:34:23 +0800
committerjdhao <jdhao@hotmail.com>2022-06-27 23:34:23 +0800
commit921fd172211a5cf86cd39e15105c8e7d302b492c (patch)
tree88cfdd88c8c98b44980d239b9de2c0d7f1be4039
parent81696c9e13627ae04bebfca91728f3c9f18effcd (diff)
update macos install script
-rw-r--r--docs/nvim_install_mac.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/nvim_install_mac.sh b/docs/nvim_install_mac.sh
index 043fe32..ef698c8 100644
--- a/docs/nvim_install_mac.sh
+++ b/docs/nvim_install_mac.sh
@@ -9,8 +9,9 @@ if [[ ! -d "$HOME/tools/" ]]; then
fi
# Delete existing nvim installation.
-if [[ -d "$HOME/tools/nvim-osx64" ]]; then
- rm -rf "$HOME/tools/nvim-osx64"
+# For newer release, the directory name is nvim-macos
+if [[ -d "$HOME/tools/nvim-macos" ]]; then
+ rm -rf "$HOME/tools/nvim-macos"
fi
# Extract the tar ball