Update install.sh

This commit is contained in:
midoks 2023-09-02 23:17:38 +08:00
parent 2e6b7bf5cd
commit 5db4a96fc9
1 changed files with 5 additions and 0 deletions

View File

@ -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}')