voidzero-dev / voidzero-dev/setup-vp

Support sh fallback for install script on Alpine

Offen
#32 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@fengmk2 arbeitet bereits daran.

Seit 24.3.2026.

Vorherrschende Sprache
TypeScript
Sterne
110
Forks
22
Ø Merge
23 Std. 51 Min.
Gemergte PRs (30 T.)
26

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.