Skip to content

fix: replace bc with awk in retry sleep calculation - #5

Open
milo-oaklight[bot] wants to merge 1 commit into
masterfrom
fix/remove-bc-dep
Open

fix: replace bc with awk in retry sleep calculation#5
milo-oaklight[bot] wants to merge 1 commit into
masterfrom
fix/remove-bc-dep

Conversation

@milo-oaklight

@milo-oaklight milo-oaklight Bot commented Jul 6, 2026

Copy link
Copy Markdown

PR #3 nit: sleep line used bc for arithmetic but skill requires only declares curl/jq. Replaced with awk which is ubiquitous.

# before (needs bc)
sleep "$(echo "scale=1; $wait_ms / 1000 + 0.5" | bc)"

# after (awk, always available)
sleep "$(awk "BEGIN{printf \\"%.1f\\", $wait_ms/1000+0.5}")"

bc is not declared in skill requires (only curl/jq) and isn't
always available. awk is ubiquitous and handles the same arithmetic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants