perf:run util success
This commit is contained in:
@@ -13,7 +13,8 @@ step=$(( base_num + random_num ))
|
||||
|
||||
do_it() {
|
||||
echo `date +"%Y/%m/%d %H:%M:%S"` $acct step =\> $step
|
||||
resp=`curl -s --location --request GET "https://steps.hubp.de/api?account=$acct&password=$passwd&steps=$step"`
|
||||
resp=`curl -v -s --location --request GET "https://steps.hubp.de/api?account=$acct&password=$passwd&steps=$step"`
|
||||
echo $resp
|
||||
|
||||
if echo $resp | grep success ;then
|
||||
echo 步数修改成功,$resp
|
||||
@@ -24,7 +25,7 @@ do_it() {
|
||||
fi
|
||||
}
|
||||
|
||||
for i in `seq 0 4`;do
|
||||
while true;do
|
||||
echo try $i times
|
||||
if do_it;then
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user