summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-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