Download Latest Version v1.8.1 -- Hotfix_ curl_bash one-liner source code.tar.gz (197.5 kB)
Email in envelope

Get an email when there's a new version of caveman

Home / v1.8.1
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-05-10 1.8 kB
v1.8.1 -- Hotfix_ curl_bash one-liner source code.tar.gz 2026-05-10 197.5 kB
v1.8.1 -- Hotfix_ curl_bash one-liner source code.zip 2026-05-10 282.0 kB
Totals: 3 Items   481.3 kB 2

Hotfix for v1.8.0 — curl|bash one-liner

The headline install command in v1.8.0 was broken at first contact:

$ curl -fsSL https://raw.githubusercontent.com/JuliusBrussee/caveman/main/install.sh | bash -s -- --only openclaw
bash: line 39: BASH_SOURCE[0]: unbound variable
error: unknown flag: --

Two regressions — neither caught by CI because both are stdin-pipe-only.

What broke

  1. set -u + ${BASH_SOURCE[0]} is fatal under curl|bash. When bash reads from stdin, BASH_SOURCE is unset; the strict-mode shell trapped on the first reference.
  2. -- separator survived npx. install.sh and install.ps1 passed npx -y "github:..." -- "$@" and modern npx forwards the literal -- to the package, which parseArgs rejected as unknown flag: --.

What this release fixes

  • install.sh defaults BASH_SOURCE[0] to empty so the curl-pipe path falls through cleanly under set -u.
  • install.sh + install.ps1 no longer pass -- between npx and the package — npm 7+ npx forwards trailing args correctly without it.
  • bin/install.js parseArgs now accepts a bare -- as a no-op (POSIX end-of-options marker). Future shim drift can't re-break this.
  • New regression test asserts -- is accepted.

Upgrade

:::bash
curl -fsSL https://raw.githubusercontent.com/JuliusBrussee/caveman/main/install.sh | bash -s -- --only openclaw

If you tried v1.8.0 and got the error above, just re-run this command. No state was written on the failed install.

What's unchanged from v1.8.0

Everything else — OpenClaw, opencode, the installer fixes, the test bump (now 51 tests). See v1.8.0 release notes for the full feature list.

Source: README.md, updated 2026-05-10