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