Fix tor error retry (#941)

This commit is contained in:
Alex
2026-05-01 19:30:32 +01:00
committed by GitHub
parent ee54033d23
commit 4881adc19f

2
tor.sh
View File

@@ -202,7 +202,7 @@ while true; do
exit 1
fi
CURRENT_LOG=$(tail -n 1 /var/log/tor/notices.log 2>/dev/null)
CURRENT_LOG=$(tail -n 1 /var/log/tor/notices.log 2>/dev/null || true)
printf "\r\033[K[%ds] %s" "$ELAPSED" "$CURRENT_LOG"
sleep 1
done