voidzero-dev / voidzero-dev/setup-vp

Support sh fallback for install script on Alpine

Open
#32 0 comments 0 reactions 1 assignee View on GitHub

@fengmk2 is already working on this.

Since Mar 24, 2026.

Dominant language
TypeScript
Stars
110
Forks
22
Avg merge
23h 51m
Merged PRs (30d)
26

Description

Context

The install script at https://viteplus.dev/install.sh uses bash-specific syntax (e.g., parentheses in expressions) that is incompatible with POSIX sh (Alpine's default shell).

When attempting to fall back from bash to sh in Alpine containers, the install fails with:

sh: syntax error: unexpected "(" (expecting "}")

See CI failure: https://github.com/voidzero-dev/setup-vp/actions/runs/23498007873/job/68384609190?pr=22

Current workaround

Alpine users must install bash as a prerequisite:

- run: apk add --no-cache bash curl gcompat libstdc++

Desired behavior

The install script should be POSIX-compatible so it can run with sh, removing the need to install bash in Alpine containers.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.