Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Jan 12, 2022
1 parent 34c5c42 commit 45c6b71
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@ function main() {
process_index="-1"
grep -v '^#\|^[[:space:]]*$' "${torrc_file}" | while read -r line
do
if [[ "$line" = HiddenServiceDir* ]]
then
hs_index=$((hs_index + 1))
if [[ "$((hs_index % hs_per_process))" = "0" ]]
if [[ "$line" = HiddenServiceDir* ]]
then
process_index=$((process_index + 1))
create_tor_service $process_index
hs_index=$((hs_index + 1))
if [[ "$((hs_index % hs_per_process))" = "0" ]]
then
process_index=$((process_index + 1))
create_tor_service $process_index
fi
fi
fi
echo $line >> "/torrc-${process_index}"
echo $line >> "/torrc-${process_index}"
done

exec /init
Expand Down

0 comments on commit 45c6b71

Please sign in to comment.