Skip to content

Commit 2292048

Browse files
committed
Fix anondate-get so it actually uses anondate's output
1 parent 82ab134 commit 2292048

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usr/sbin/anondate-get

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ output_cmd "INFO: Attempting to determine Tor consensus time middle range..."
162162
#output_cmd "INFO: has Tor consensus, ok."
163163
##
164164
## Therefore use 'anondate --show-middle-range' to check if a Tor consensus is already available.
165-
if time_result="$(anondate --show-middle-range &>/dev/null)" ; then
165+
if time_result="$(anondate --show-middle-range 2>/dev/null)" ; then
166166
valid_after="$(anondate --show-valid-after)"
167167
## example valid_after:
168168
## 2021-01-21 15:00:00

0 commit comments

Comments
 (0)