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