chore: Add Shellcheck suggestions
This commit is contained in:
parent
7f2b750466
commit
06356b6d1c
3 changed files with 5 additions and 5 deletions
|
@ -39,7 +39,7 @@ then
|
|||
echo "Amount of unique sites: ${#sites[@]}"
|
||||
for a in "${sites[@]}"
|
||||
do
|
||||
loop_1 $a &
|
||||
loop_1 "$a" &
|
||||
if [[ $(jobs -r -p | wc -l) -ge $(expr $(getconf _NPROCESSORS_ONLN)*2) ]]
|
||||
then
|
||||
wait -n
|
||||
|
@ -56,7 +56,7 @@ then
|
|||
then
|
||||
for b in "${sitesdown[@]}"
|
||||
do
|
||||
loop_2 $b &
|
||||
loop_2 "$b" &
|
||||
if [[ $(jobs -r -p | wc -l) -ge $(expr $(getconf _NPROCESSORS_ONLN)/2) ]]
|
||||
then
|
||||
wait -n
|
||||
|
@ -67,7 +67,7 @@ then
|
|||
fi
|
||||
while read -r lineb; do
|
||||
#The community no longer exists, delete
|
||||
loop_3 $lineb &
|
||||
loop_3 "$lineb" &
|
||||
if [[ $(jobs -r -p | wc -l) -ge $(expr $(getconf _NPROCESSORS_ONLN)/2) ]]
|
||||
then
|
||||
wait -n
|
||||
|
|
|
@ -40,7 +40,7 @@ grep -e "https://$site/$avatarfolder/" "$tmpfile" | sed -e "s/.*$site/$folderesc
|
|||
#Specific compression for large GIF files
|
||||
while [[ $(stat -c%s "${p}") -ge 512000 ]]
|
||||
do
|
||||
gifsicle "${p}" `seq -f "#%g" 0 2 99` -O3 --lossy=80 --colors=255 -o "${p}" & #&> /dev/null
|
||||
gifsicle "${p}" $(seq -f "#%g" 0 2 99) -O3 --lossy=80 --colors=255 -o "${p}" & #&> /dev/null
|
||||
if [[ $(jobs -r -p | wc -l) -ge $(getconf _NPROCESSORS_ONLN) ]]
|
||||
then
|
||||
wait -n
|
||||
|
|
|
@ -46,7 +46,7 @@ IFS="
|
|||
size_original=$(stat -c%s "${s}")
|
||||
if [ "$size_original" -gt "$size_new" ]
|
||||
then
|
||||
mv /tmp/"${s##.*\/}"_temp.webp $s
|
||||
mv /tmp/"${s##.*\/}"_temp.webp "$s"
|
||||
else
|
||||
rm /tmp/"${s##.*\/}"_temp.webp
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue