Skip to content

Commit b9f7194

Browse files
author
Paul Elliott
committed
Only output progress every 10 seconds
1 parent a3caa35 commit b9f7194

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

wireguard-ssh.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ while [ "${SSH_CONNECTION_TIMEOUT}" -gt 0 ] ; do
9595
else
9696
SSH_CONNECTION_TIMEOUT=$((SSH_CONNECTION_TIMEOUT - 1))
9797
# Produce output to encourage GitHub Actions to show progress during the run
98-
echo "."
98+
if (( SSH_CONNECTION_TIMEOUT % 10 == 0 )); then
99+
echo "."
100+
fi
99101
sleep 1
100102
fi
101103
done

0 commit comments

Comments
 (0)