Skip to content

Commit

Permalink
fixed updateTorDB.sh
Browse files Browse the repository at this point in the history
backwards counting was broken, now fixed, it just missed a -1
from
$(seq $n 0)
to
$(seq $n -1 0)
  • Loading branch information
Takalele authored Aug 20, 2024
1 parent e1eed87 commit 312951f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tor/updateTorDB.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fetch_files() {
n=$(($1 - 1))
current_year=$(date +"%Y")
current_month=$(date +"%m")
for i in $(seq $n 0); do
for i in $(seq $n -1 0); do
# Add #0 to prevent '08' for month August to be interpreted octal and fail due to value too great for base
month=$((${current_month#0} - $i))
year=$current_year
Expand Down

0 comments on commit 312951f

Please sign in to comment.