summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Bielik <mx.bielik@gmail.com>2023-03-03 18:16:03 +0100
committerMartin Bielik <mx.bielik@gmail.com>2023-03-03 18:16:03 +0100
commit374739e42a7c03922bcbf5eddbac324f73e4777b (patch)
treea926a3ba106c6e815a22b7b9ef24e9bfa53e19e5
parent8421f691816c61d8cb2f2147d6c6aacfd42c890d (diff)
downloadvim-ai-374739e42a7c03922bcbf5eddbac324f73e4777b.tar.gz
fixed deps installation
-rwxr-xr-xinstall.sh15
1 files changed, 10 insertions, 5 deletions
diff --git a/install.sh b/install.sh
index ed2d5b5..f4d77f3 100755
--- a/install.sh
+++ b/install.sh
@@ -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