From ba3f604a5c46315d7a13507f06e93b5088769663 Mon Sep 17 00:00:00 2001 From: whyour Date: Sat, 13 Nov 2021 20:58:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbot=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/bot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/bot.sh b/shell/bot.sh index ae795e5c..e455aa40 100644 --- a/shell/bot.sh +++ b/shell/bot.sh @@ -31,7 +31,7 @@ cp -f "$repo_path/jbot/requirements.txt" "$dir_root" cd $dir_root cat requirements.txt | while read LREAD do -if test ! -z "$(pip3 show "${LREAD%%=*}" 1>/dev/null)"; then +if [[ ! $(pip3 show "${LREAD%%=*}" 2>/dev/null) ]]; then pip3 --default-timeout=100 install ${LREAD} fi done