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