Skip to content

Commit

Permalink
fix countdown in while loop
Browse files Browse the repository at this point in the history
  • Loading branch information
jtschoonhoven committed May 1, 2020
1 parent dda21c4 commit c2c69fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.2
0.1.3
2 changes: 1 addition & 1 deletion bin/run_tor
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ if [ ! -f "${HOME}/hidden_service/private_key" ] || [ ! -f "${HOME}/hidden_servi
TOR_AUTOGEN_TRIES_REMAINING=5
while [ ! -f "${HOME}/hidden_service/private_key" ] && [ ! -f "${HOME}/hidden_service/hostname" ]; do
TOR_AUTOGEN_TRIES_REMAINING=$((TOR_AUTOGEN_TRIES_REMAINING-1))
if [ TOR_AUTOGEN_TRIES_REMAINING -eq 0 ]; then
if [ $TOR_AUTOGEN_TRIES_REMAINING -eq 0 ]; then
echo "[TOR] FAILURE: Unable to automatically generate a hostname and private_key"
exit 1
fi
Expand Down

0 comments on commit c2c69fc

Please sign in to comment.