diff --git a/scripts/install.sh b/scripts/install.sh index 836b8f1..599c02a 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -202,7 +202,7 @@ main() { fi ok "✅ Node $(node --version)" - local meta tarball extract_dir version_dir launcher + local meta tarball extract_dir version_dir launcher command_hint CLEANUP_DIR="$(mktemp -d "${TMPDIR:-/tmp}/clawfix-install.XXXXXX")" tmp="$CLEANUP_DIR" trap 'rm -rf "${CLEANUP_DIR:-}"' EXIT @@ -259,8 +259,13 @@ EOF log " Binary: $launcher" log "" + command_hint="$launcher" case ":${PATH}:" in - *":${BIN_DIR}:"*) ;; + *":${BIN_DIR}:"*) + if [ "$(command -v clawfix 2>/dev/null || true)" = "$launcher" ]; then + command_hint="clawfix" + fi + ;; *) warn "⚠️ ${BIN_DIR} is not on PATH" log " Add this to your shell profile:" @@ -269,18 +274,13 @@ EOF ;; esac - if command -v clawfix >/dev/null 2>&1; then - ok "✅ Ready: clawfix --version" - clawfix --version || true - else - ok "✅ Ready: ${launcher} --version" - "$launcher" --version || true - fi + ok "✅ Verifying installed binary: ${launcher} --version" + "$launcher" --version || die "Installed ClawFix failed its version check" log "" info "Next:" - log " clawfix --dry-run" - log " clawfix" + log " ${command_hint} --dry-run" + log " ${command_hint}" log "" } diff --git a/src/landing.js b/src/landing.js index 6b592dc..65f7c0f 100644 --- a/src/landing.js +++ b/src/landing.js @@ -509,11 +509,11 @@ const LANDING_HTML = `
curl -fsSL https://clawfix.dev/install -o install.sh
-
+ curl -fsSL https://clawfix.dev/install -o install.sh && bash install.sh
+
- Recommended Verify with shasum -a 256 install.sh against the published hash, then run bash install.sh. No global npm.
+ Recommended Downloads and runs the installer. To inspect first, omit && bash install.sh, verify with shasum -a 256 install.sh against the published hash, then run it. No global npm.
Prefer npm? npx clawfix@0.12.0 · Dry run: npx clawfix@0.12.0 --dry-run · macOS, Linux, WSL · Node.js 22+
@@ -870,14 +870,53 @@ gateway-not-running repair. Want me to?