From 312951f73dddd76fde98532d4c82c7b19a8cb680 Mon Sep 17 00:00:00 2001 From: Takalele Date: Tue, 20 Aug 2024 23:34:29 +0200 Subject: [PATCH] fixed updateTorDB.sh backwards counting was broken, now fixed, it just missed a -1 from $(seq $n 0) to $(seq $n -1 0) --- src/tor/updateTorDB.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tor/updateTorDB.sh b/src/tor/updateTorDB.sh index df397edb..f609bdf0 100755 --- a/src/tor/updateTorDB.sh +++ b/src/tor/updateTorDB.sh @@ -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