diff options
author | Simon Fontana Oscarsson <[email protected]> | 2021-05-09 17:22:46 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-09 11:22:46 -0400 |
commit | cce4f50e76517d972b47caa041756079547285e6 (patch) | |
tree | 911d5c642c014dbad41ce23e31cc24315b3d1f09 | |
parent | 123dfca59456873e554b29d815e0fc43d7563b08 (diff) |
Fix packer and nvim already installed check (#382)
It was not possible to install LunarVim if these programs were already
installed. The check is syntactically incorrect and will always return
non-0 status, and the installer always continued with installing packer
and nvim. This failed with an error: "fatal: destination path
'REDACTED/packer.nvim' already exists and is not an empty directory."
Correct the syntax error by checking if the file exists.
-rwxr-xr-x | utils/installer/install.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/installer/install.sh b/utils/installer/install.sh index 4db157e6..096ddec0 100755 --- a/utils/installer/install.sh +++ b/utils/installer/install.sh @@ -157,13 +157,13 @@ which node >/dev/null && echo "node installed, moving on..." || asktoinstallnode # install pynvim pip3 list | grep pynvim >/dev/null && echo "pynvim installed, moving on..." || installpynvim -if [ -a "$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim" ]; then +if [ -e "$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim" ]; then echo 'packer already installed' else installpacker fi -if [ -a "$HOME/.config/nvim/init.lua" ]; then +if [ -e "$HOME/.config/nvim/init.lua" ]; then echo 'nvcode already installed' else # clone config down |