Skip to content

fix(zorto/install): POSIX-correct redirect + post-install PATH nudge#16

Merged
lostmygithubaccount merged 1 commit into
mainfrom
fix/zorto-install-sh-posix
Apr 13, 2026
Merged

fix(zorto/install): POSIX-correct redirect + post-install PATH nudge#16
lostmygithubaccount merged 1 commit into
mainfrom
fix/zorto-install-sh-posix

Conversation

@lostmygithubaccount
Copy link
Copy Markdown
Member

@lostmygithubaccount lostmygithubaccount commented Apr 13, 2026

Summary

  • swap bashism &>/dev/null for POSIX >/dev/null 2>&1 in static/zorto/install.sh. The shebang declares #!/usr/bin/env sh so &> (a bash-4 merge-redirect) breaks under dash, ash, and busybox sh. Anyone curl|sh'ing on Debian/Ubuntu (where /bin/sh is dash), Alpine, or a minimal container hits syntax error near unexpected token before uv even gets a chance to install.
  • append a post-install line: zorto --version || echo "...add ~/.local/bin to your PATH...". uv tool installs land in ~/.local/bin, which is not on $PATH for fresh macOS zsh sessions (no .zprofile entry) or many Linux distros. Most common first-impression footgun.

Test plan

  • dash -n static/zorto/install.sh passes
  • sh -n static/zorto/install.sh passes
  • shellcheck static/zorto/install.sh (not available locally; recommend running in CI if dkdc.sh adopts shellcheck)
  • manual smoke: curl -LsSf https://dkdc.sh/zorto/install.sh | dash after deploy

Surfaced as a BLOCKER in agent8's zorto packaging audit (2026-04-13).

Generated by Claude Code

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 13, 2026

Deploy Preview for dkdcsh ready!

Name Link
🔨 Latest commit 4a12c1b
🔍 Latest deploy log https://app.netlify.com/projects/dkdcsh/deploys/69dd26141290960008b979a1
😎 Deploy Preview https://deploy-preview-16--dkdcsh.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

The shebang declares /usr/bin/env sh but line 7 used the bash-only `&>/dev/null`
redirect, which fails under dash, ash, and busybox sh. Anyone curl|sh'ing on
Debian/Ubuntu (where /bin/sh is dash), Alpine, or a minimal container would hit
"syntax error near unexpected token" before uv even gets a chance to run.

Switch to the POSIX `>/dev/null 2>&1` form. Verified with `dash -n` and `sh -n`.

Also append a post-install line that calls `zorto --version` and, on failure,
hints that ~/.local/bin (where uv tool installs land) may not be on $PATH.
This is the most common first-impression footgun for fresh shells.

No version bump; this script is served raw from static/.
@lostmygithubaccount lostmygithubaccount force-pushed the fix/zorto-install-sh-posix branch from f6356fb to 4a12c1b Compare April 13, 2026 17:21
@lostmygithubaccount lostmygithubaccount merged commit 931d7f7 into main Apr 13, 2026
5 checks passed
@lostmygithubaccount lostmygithubaccount deleted the fix/zorto-install-sh-posix branch April 13, 2026 17:23
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.

1 participant