Skip to content
This repository was archived by the owner on Feb 4, 2026. It is now read-only.

Commit 42e6abe

Browse files
authored
Update nipopow-ergo-node.sh
1 parent 732532d commit 42e6abe

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

nipopow-ergo-node.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,14 @@ Sync Progress;" \
180180

181181
echo " "
182182

183-
grep 'Downloaded or waiting' ergo.log | tail -n 1 | awk -F'- ' '{print $2}' | \
184-
sed -E 's/Downloaded or waiting ([0-9]+) chunks out of ([0-9]+).*/### Chunks Downloaded \1\/\2 ###/' | \
185-
awk 'BEGIN{print "NiPoPoW Bootstrap Progress:\n"}{print}'
183+
line=$(grep 'Downloaded or waiting' ergo.log | tail -n 1)
184+
185+
if [ -n "$line" ]; then
186+
echo "NiPoPoW Bootstrap Progress:"
187+
echo ""
188+
echo "$line" | awk -F'- ' '{print $2}' | \
189+
sed -E 's/Downloaded or waiting ([0-9]+) chunks out of ([0-9]+).*/### Chunks Downloaded \1\/\2 ###/'
190+
fi
186191

187192
echo " "
188193

0 commit comments

Comments
 (0)