From 5db4a96fc9d2e39afe93f5da2c7675019e9e91cd Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 2 Sep 2023 23:17:38 +0800 Subject: [PATCH] Update install.sh --- plugins/gdrive/install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/gdrive/install.sh b/plugins/gdrive/install.sh index 6b1517201..43b8895b5 100644 --- a/plugins/gdrive/install.sh +++ b/plugins/gdrive/install.sh @@ -15,6 +15,10 @@ install_tmp=${rootPath}/tmp/mw_install.pl PATH=$PATH:${rootPath}/bin export PATH +if [ -f ${rootPath}/bin/activate ];then + source ${rootPath}/bin/activate +fi + VERSION=$2 Install_App() @@ -25,6 +29,7 @@ Install_App() tmp=`python -V 2>&1|awk '{print $2}'` pVersion=${tmp:0:3} + which pip if [ "$?" -eq "0" ];then tmp=$(pip list|grep google-api-python-client|awk '{print $2}')