fix: Correct parentheses in thread condition
This commit is contained in:
parent
0ab935e412
commit
eedc7f0472
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ grep -e "https://${site}/${avatarfolder}/" "${tmpfile}" | sed -e "s/.*${site}/${
|
||||||
while read -r i; do
|
while read -r i; do
|
||||||
for p in "${i}" "${i//-320/-80}" "${i//-320/-48}"; do
|
for p in "${i}" "${i//-320/-80}" "${i//-320/-48}"; do
|
||||||
loop_1 "${p}" &
|
loop_1 "${p}" &
|
||||||
if [[ $(jobs -r -p | wc -l) -ge $(( $(getconf _NPROCESSORS_ONLN) / 2) ]]; then
|
if [[ $(jobs -r -p | wc -l) -ge $(($(getconf _NPROCESSORS_ONLN) / 2)) ]]; then
|
||||||
wait -n
|
wait -n
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue