Skip to content

scripts/publish: fix sh-incompatible &> redirect (why the 0.2.7 Publish run failed) - #29

Merged
Zivxx merged 1 commit into
masterfrom
ziv/fix-publish-bashism
Aug 20, 2026
Merged

Zivxx merged 1 commit into
masterfrom
ziv/fix-publish-bashism

Conversation

@Zivxx

@Zivxx Zivxx commented Aug 20, 2026

Copy link
Copy Markdown

The publish workflow's failure on tag 0.2.7 was not a missing dependency: twine was installed (its path is line 15 of the run log). scripts/publish runs under #!/bin/sh, and dash does not implement the bash-only &> operator, so command -v twine &>/dev/null misparses and the not-found branch fires unconditionally. Replaced both occurrences with >/dev/null 2>&1. (scripts/start_pulsar keeps its &> — it declares #!/bin/bash.)

With this + a valid PYPI_TOKEN secret, the next tag push should publish cleanly.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Nxg7e1Jtk5qykAdYoYENdw

The script runs under #!/bin/sh; on dash `&>` is not a redirection operator,
so the `command -v twine` check misparses and the "Unable to find twine"
branch fires even when twine is installed. This is why the Publish workflow
failed on the 0.2.7 tag (the runner had twine — its path is visible in the
run log — yet the job exited 1).

start_pulsar keeps its `&>`: it declares #!/bin/bash.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Nxg7e1Jtk5qykAdYoYENdw
@Zivxx
Zivxx merged commit 93efd78 into master Aug 20, 2026
4 checks passed
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.

2 participants