修改shell语法

This commit is contained in:
whyour
2021-11-05 23:39:22 +08:00
parent 2b70851074
commit 65ade4b996
7 changed files with 31 additions and 31 deletions
+8 -1
View File
@@ -27,8 +27,15 @@ if [[ $PipMirror ]]; then
pip3 config set global.index-url $PipMirror
fi
cp -f "$repo_path/jbot/requirements.txt" "$dir_root"
cd $dir_root
pip3 --default-timeout=100 install -r requirements.txt --no-cache-dir
cat requirements.txt | while read LREAD
do
if test ! -z "$(pip3 show "${LREAD%%=*}" 1>/dev/null)"; then
pip3 --default-timeout=100 install ${LREAD}
fi
done
echo -e "\npython3依赖安装成功...\n"
echo -e "4、启动bot程序...\n"