From 374739e42a7c03922bcbf5eddbac324f73e4777b Mon Sep 17 00:00:00 2001 From: Martin Bielik Date: Fri, 3 Mar 2023 18:16:03 +0100 Subject: fixed deps installation --- install.sh | 15 ++++++++++----- 1 file 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 -- cgit v1.2.3