mirror of
https://github.com/chinnkarahoi/jd_scripts.git
synced 2024-06-05 19:32:47 +08:00
update docker/default_task.sh.
增加过滤cookies.list里面#号注释行
This commit is contained in:
parent
64db26a611
commit
f1d8fa4d61
@ -29,7 +29,7 @@ first=\$1
|
|||||||
cmd=\$*
|
cmd=\$*
|
||||||
echo \${cmd/\$1/}
|
echo \${cmd/\$1/}
|
||||||
if [ \$1 == "conc" ]; then
|
if [ \$1 == "conc" ]; then
|
||||||
for job in \$(paste -d" " -s - <\$COOKIES_LIST); do
|
for job in \$(cat \$COOKIES_LIST | grep -v "#" | paste -s -d ' '); do
|
||||||
{ export JD_COOKIE=\$job && node \${cmd/\$1/}
|
{ export JD_COOKIE=\$job && node \${cmd/\$1/}
|
||||||
}&
|
}&
|
||||||
done
|
done
|
||||||
@ -42,7 +42,7 @@ elif [ -n "\$(cat \$COOKIES_LIST | grep "pt_pin=\$first")" ];then
|
|||||||
{ export JD_COOKIE=\$(cat \$COOKIES_LIST | grep "pt_pin=\$first") && node \${cmd/\$1/}
|
{ export JD_COOKIE=\$(cat \$COOKIES_LIST | grep "pt_pin=\$first") && node \${cmd/\$1/}
|
||||||
}&
|
}&
|
||||||
else
|
else
|
||||||
{ export JD_COOKIE=\$(cat \$COOKIES_LIST | paste -s -d '&') && node \$*
|
{ export JD_COOKIE=\$(cat \$COOKIES_LIST | grep -v "#" | paste -s -d '&') && node \$*
|
||||||
}&
|
}&
|
||||||
fi
|
fi
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user