Skip to content

Commit

Permalink
fix bug in download counting
Browse files Browse the repository at this point in the history
  • Loading branch information
gmn committed Apr 3, 2017
1 parent 15d4ee5 commit 027cecf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 4chget
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ do

let NPONE="$I+1"

I=$NPONE

if [ $NPONE -lt ${#URLS[*]} ]; then
next_line=${URLS[$NPONE]}
else
Expand Down Expand Up @@ -168,6 +166,8 @@ do
let SKIP="${SKIP}+1"
echo skipping "${pic} (#${SKIP})", already have it
fi

I=$NPONE
done

if [ $SKIP -gt 0 ]; then
Expand Down

0 comments on commit 027cecf

Please sign in to comment.