diff --git a/install.sh b/install.sh index 05ffd9b..45fbc8d 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,15 @@ #!/bin/bash git submodule update --init --recursive -pip2 install --user pyflakes -pip3 install --user pynvim -sudo npm install -g tern + +if [ -x "$(command -v pip2)" ]; then + pip2 install --user pyflakes +fi + +if [ -x "$(command -v pip3)" ]; then + pip3 install --user pynvim +fi + +if [ -x "$(command -v npm)" ]; then + sudo npm install -g tern +fi