summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xinstall.sh17
1 files changed, 12 insertions, 5 deletions
diff --git a/install.sh b/install.sh
index 7b4e187..76174c4 100755
--- a/install.sh
+++ b/install.sh
@@ -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