Skip to content

Commit

Permalink
Merge pull request #558 from Takalele/master
Browse files Browse the repository at this point in the history
Fixed updateTorDB.sh for compatibility across *BSD and Linuxes.
  • Loading branch information
phaag authored Aug 23, 2024
2 parents 5e08f54 + 312951f commit 341575a
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 341575a

Please sign in to comment.