regex for log

This commit is contained in:
shocknet-justin 2025-08-26 17:22:24 -04:00
parent 9a6c7b6a41
commit 1620ebd2e9

View file

@ -36,7 +36,7 @@ get_log_info() {
while [ $(($(date +%s) - START_TIME)) -lt $MAX_WAIT_TIME ]; do
current_size=$(stat -c %s "$latest_unlocker_log")
if [ $current_size -gt $initial_size ]; then
latest_entry=$(tail -c +$((initial_size + 1)) "$latest_unlocker_log" | grep -E "unlocker >> (the wallet is already unlocked|created wallet with pub|unlocked wallet with pub)" | tail -n 1)
latest_entry=$(tail -c +$((initial_size + 1)) "$latest_unlocker_log" | grep -E "unlocker >> (the wallet is already unlocked|created wallet with pub:|unlocked wallet with pub)" | tail -n 1)
if [ -n "$latest_entry" ]; then
break
fi