Merge pull request #14 from aserowy/main

use pip3 in install.sh
This commit is contained in:
siduck76 2021-04-02 13:09:30 +05:30 committed by GitHub
commit 678f38792a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ heading "old nvim config will be deleted so watchout :0"
# copying config # copying config
rm -rf ~/.config/nvim/ && mkdir ~/.config/nvim rm -rf ~/.config/nvim/ && mkdir -p ~/.config/nvim
cp -r init.lua ~/.config/nvim && cp -r lua ~/.config/nvim cp -r init.lua ~/.config/nvim && cp -r lua ~/.config/nvim
#for f in `find -E . -regex ".*\.vim$|.*\.lua$"`; do #for f in `find -E . -regex ".*\.vim$|.*\.lua$"`; do
@ -60,15 +60,15 @@ install_node_deps () {
echo "npm not installed" echo "npm not installed"
return return
fi fi
sudo npm install -g $@ sudo npm install -g $@
} }
install_python_deps () { install_python_deps () {
if [[ -z $(which pip) ]]; then if [[ -z $(which pip) && -z $(which pip3) ]]; then
echo "python/pip not installed" echo "python/pip not installed"
return return
fi fi
sudo python3 -m pip install $@ sudo python3 -m pip install $@
} }
install_ts() { install_ts() {