🔨 修复一键脚本错误

This commit is contained in:
Xtao_dada 2020-09-06 09:24:18 +08:00 committed by GitHub
parent 9fa3296db2
commit 3a3885a8e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -317,6 +317,7 @@ configure() {
read_checknum(){
if [ "$ftime" == "111" ]; then
echo "失败次数达到上限!" && exit 1
fi
read -p "请输入您的登录验证码: " checknum
screen -x -S userbot -p 0 -X stuff "$checknum"
screen -x -S userbot -p 0 -X stuff $'\n'
@ -335,6 +336,7 @@ read_checknum(){
fi
fi
}
login_screen(){
screen -S userbot -X quit >> /dev/null 2>&1
screen -dmS userbot