diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2023-03-14 19:10:35 +0100 |
|---|---|---|
| committer | Martin Bielik <mx.bielik@gmail.com> | 2023-03-14 19:10:35 +0100 |
| commit | 82713c3475dbbb1192b993aa1da32154d8a8b547 (patch) | |
| tree | 04280d28687cead95fe6d2ffcfcfd3fced3188c7 /install.sh | |
| parent | 641ac91387da52197d31a0e6bc5a06e28281f0e1 (diff) | |
| download | vim-ai-82713c3475dbbb1192b993aa1da32154d8a8b547.tar.gz | |
using pip or pip3 to install deps
Diffstat (limited to '')
| -rwxr-xr-x | install.sh | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -1,9 +1,16 @@ #!/bin/bash -if [ -z "$(which pip3)" ]; then - echo pip3 not found - exit 1 +if [ -n "$(which pip)" ]; then + echo installing deps using pip + pip install openai + exit 0 fi -echo installing deps using pip3 -pip3 install openai +if [ -n "$(which pip3)" ]; then + echo installing deps using pip3 + pip3 install openai + exit 0 +fi + +echo pip or pip3 not found +exit 1 |